我正在为 Prestahop (1.4.4.1) 制作一个十模板。任何像 authentication.tpl 这样的模板文件都死了,其中包括:
{include file=$tpl_dir./errors.tpl}
我不知道为什么这不起作用。我试过 {include file="./errors.tpl"}, {include file="errors.tpl"} 但结果是一样的。
感谢您的每一个回复
我正在为 Prestahop (1.4.4.1) 制作一个十模板。任何像 authentication.tpl 这样的模板文件都死了,其中包括:
{include file=$tpl_dir./errors.tpl}
我不知道为什么这不起作用。我试过 {include file="./errors.tpl"}, {include file="errors.tpl"} 但结果是一样的。
感谢您的每一个回复
Prestashop 1.4 默认使用 Smarty 3...所以试试
{include file="$tpl_dir./errors.tpl"}
您确定您的模板位于 smarty $template_dir 中吗?如果没有,smarty 文档中的这个页面可以帮助你:http ://www.smarty.net/docsv2/en/template.resources.tpl