The page appears when the URL address is entered: Fatal error:uncaught exception ' smartycompilerexception ' with message ' Syntax error in template ' E:\wamp\w Ww\cms\system/templates/index.html "On line" $ ("#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 is usually caused by CSS and JS {} and Smarty delimiter conflicts.
There are two solutions:
1. The Smarty delimiter can be set to <{}>
Copy Code code as follows:
$tpl->left_delimiter = ' <{';
$tpl->right_delimiter = '}> ';
2. For JS {} and Smarty delimiter conflict, you can use smarty literal processing, can be included in the JS code in {literal}{/literal} can be.
Copy Code code as follows:
<{literal}>
$ (
<span style= "White-space:pre" > </span>function () {Alert (' Training Course ')}
);
<{/literal}>