jaw*_*eed 12 php smarty prestashop
我是聪明的新手,我想在模板文件即tpl文件中使用php代码.我已经看过文档并在谷歌搜索,但无法找到如何使用PHP代码他们说我们需要配置smarty允许PHP执行但无法找到如何做到这一点.
请在这方面帮助我.谢谢
Pri*_*ner 24
像煮鸡蛋一样容易!
{php}echo "hello!"{/php}
Run Code Online (Sandbox Code Playgroud)
第二个链接下来,供参考.
编辑Smarty 3.1:
从Smarty 3.1开始,{php}标签仅可从SmartyBC获得.
资料来源:http://www.smarty.net/docs/en/language.function.php.tpl
| 归档时间: |
|
| 查看次数: |
52154 次 |
| 最近记录: |