我为Prestahop(1.4.4.1)制作了一个十个模板。任何模板文件,如authentication.tpl,会死在哪里包括:Prestashop Smarty包括一个脚本
{include file=$tpl_dir./errors.tpl}
我不知道为什么这不起作用。我试过{include file =“./ errors.tpl”},{include file =“errors.tpl”}但结果是一样的。
感谢您的回复
我为Prestahop(1.4.4.1)制作了一个十个模板。任何模板文件,如authentication.tpl,会死在哪里包括:Prestashop Smarty包括一个脚本
{include file=$tpl_dir./errors.tpl}
我不知道为什么这不起作用。我试过{include file =“./ errors.tpl”},{include file =“errors.tpl”}但结果是一样的。
感谢您的回复
您确定您的模板位于您的smarty $ template_dir中吗?如果不是,从Smarty的文档此页面可以帮助你:http://www.smarty.net/docsv2/en/template.resources.tpl
的Prestashop 1.4使用的Smarty 3默认... 所以尽量
{include file="$tpl_dir./errors.tpl"}
这解决了我的问题,谢谢! – 2012-03-14 23:39:32
什么错误(S)为PHP给你?如果没有,那么PHP设置为在你的php.ini中显示错误? – ridecar2 2011-12-29 23:43:34
我将它设置为E_ALL,但结果相同 – PiKey 2011-12-30 09:03:13
很久以前,我已经解决了这个问题 - 问题出现在模板文件中。我还没有复制所有的tpl文件,有些是针对较早的prestashop版本的。 – PiKey 2012-02-14 12:57:47