Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 smarty 的新手,我正在尝试将一些 php 代码放入 TPL
例子:
{php}echo 'test';{/php}
但不,我得到一个空白页。是否可以启用 {php} 以及如何启用?谢谢!
它已被弃用。从文档中:
“从 Smarty 3.1 开始,{php} 标签只能从 SmartyBC 获得。”
来源:http ://www.smarty.net/docs/en/language.function.php.tpl