2011-12-29 46 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