最近,我将一个网站从PHP5.2环境移到了5.4.35。
该网站使用Smarty3.1作为模板和不幸,这不是我所熟悉的工具。由于大的移动,我们得到未知的标签“包括”错误。
我想知道社区里是否有人遇到过这种情况?
Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/var/www/vhosts/domain.com/httpdocs/templates/index.html" on line 1 "<!--{include file="_header.html"}-->" unknown tag "include"' in /var/www/vhosts/domain.com/httpdocs/lib/smarty3.1/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 617我尝试过搜索Smarty论坛,但没有取得什么成功。有人知道我需要找什么吗?
发布于 2021-12-29 23:12:03
重要通知 {include_php}不推荐Smarty,请使用已注册的插件将表示与应用程序代码正确隔离。从Smarty3.1开始,{include_php}标记只能从SmartyBC中获得。
来源:https://www.smarty.net/docs/en/language.function.include.php.tpl
https://stackoverflow.com/questions/29795652
复制相似问题