使用smarty编译product.tpl时出错

2023-12-31

我尝试编译this http://www.codeshare.io/ywPex使用 smarty.tpl 文件。我的 php 文件是this http://www.codeshare.io/Qx8uW。但我看到了错误消息

( ! ) 致命错误:未捕获 --> Smarty 编译器:第 94 行模板“.\templates\product.tpl”中的语法错误“var isntExist = '{ls='此产品不存在此组合。请选择另一个.' js=1}';"未知标签“l”

谁能帮我解决这个错误吗?


问题出现在:

var doesntExist = '{l s='This combination does not exist for this product. Please choose another.' js=1}';

问题是这里是什么l- 这是Smarty功能吗?如果是,则似乎未正确加载,如果由于某种原因它应该是纯文本,您可以尝试将其放入{literal}:

var doesntExist = '{literal}{l s='This combination does not exist for this product. Please choose another.' js=1}{/literal}';
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

使用smarty编译product.tpl时出错 的相关文章

随机推荐