2011-12-29 81 views
2

我为Prestahop(1.4.4.1)制作了一个十个模板。任何模板文件,如authentication.tpl,会死在哪里包括:Prestashop Smarty包括一个脚本

{include file=$tpl_dir./errors.tpl} 

我不知道为什么这不起作用。我试过{include file =“./ errors.tpl”},{include file =“errors.tpl”}但结果是一样的。

感谢您的回复

+0

什么错误(S)为PHP给你?如果没有,那么PHP设置为在你的php.ini中显示错误? – ridecar2 2011-12-29 23:43:34

+0

我将它设置为E_ALL,但结果相同 – PiKey 2011-12-30 09:03:13

+0

很久以前,我已经解决了这个问题 - 问题出现在模板文件中。我还没有复制所有的tpl文件,有些是针对较早的prestashop版本的。 – PiKey 2012-02-14 12:57:47

回答

2

的Prestashop 1.4使用的Smarty 3默认... 所以尽量

{include file="$tpl_dir./errors.tpl"} 
+0

这解决了我的问题,谢谢! – 2012-03-14 23:39:32