當(dāng)輸入url地址后網(wǎng)頁(yè)出現(xiàn):Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "E:/wamp/www/cms/system/templates/index.html" on line 79 "$("#job").load("./system/templates/touch/test.php",{catid:3});" - Unexpected ":", expected one of: "}" , " "' in E:/wamp/www/cms/system/Smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 441這樣的問題,通常是css和js的{}與smarty定界符沖突導(dǎo)致的。
解決辦法有兩個(gè):
1.可以把 smarty 的定界符設(shè)成 <{ }>
復(fù)制代碼 代碼如下:
$tpl->left_delimiter = '<{';
$tpl->right_delimiter = '}>';
復(fù)制代碼 代碼如下:
<{literal}>
$ (
<span> </span>function () { alert ('培訓(xùn)課程')}
);
<{/literal}>
新聞熱點(diǎn)
疑難解答
圖片精選