我正在制作Prestahop(1.4.4.1)的10个模板。任何模板文件,如身份验证。TPL中包含:
{include file=$tpl_dir./errors.tpl}
我不知道为什么这不起作用。我尝试了{include file="./errors "。Tpl "}, {include file="错误。
感谢大家的回复
Prestashop 1.4使用Smarty 3作为默认…所以尝试
{include file="$tpl_dir./errors.tpl"}
你确定你的模板位于smarty $template_dir中吗?如果没有,smarty文档中的这个页面可以帮助你:http://www.smarty.net/docsv2/en/template.resources.tpl