我尝试用smarty用file_get_contents读取外部数据
然而,我得到了这个错误。
Fatal error: Smarty error: [in /opt/lampp/htdocs/blog/serendipity/templates/templates3/index.tpl line 107]: [plugin] (secure mode) modifier 'file_get_contents' is not allowed (Smarty_Compiler.class.php, line 1934) in /opt/lampp/htdocs/blog/serendipity/bundled-libs/Smarty/libs/Smarty.class.php on line 1093
有没有其他方法可以获取数据?或者我如何让smarty使用这个函数?
发布于 2012-05-21 17:57:16
也许{fetch}插件可以在这里提供帮助。在任何情况下,@shadyyx都是正确的。你可能只想分配内容,让你的生活变得更简单。
https://stackoverflow.com/questions/10682816
复制相似问题