【发布时间】:2015-04-25 19:47:30
【问题描述】:
我想让 smarty 显示 html 变量内容,就像它是 html 文件的一部分一样,所以我使用“unescape”修饰符,就像它是 show here:
<div id="add">{if $add}{$add|unescape:"html"}{/if}</div>
但我明白了:
Fatal error: Smarty error: [in xxx.html line 20]: [plugin] modifier 'unescape' is not implemented (core.load_plugins.php, line 118) in
XXX/inc/lib/Smarty/Smarty.class.php on line 1095
我的插件目录在正确的位置:
Smarty$ ls
Config_File.class.php Smarty.class.php Smarty_Compiler.class.php debug.tpl error_log internals plugins
可能出了什么问题,我该如何做我想做的事?
【问题讨论】: