php使用smarty模板引用overlib時提示錯誤(模板分界符已經設為<{,}>):
Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template ".\templates\test5.tpl" on line 53 "<{popup_init src='/smarty/overlib/overlib.js'}>" unknown tag "popup_init"' in D:\wamp\apache\htdocs\smarty\libs\sysplugins\smarty_internal_templatecompilerbase.php:656 Stack trace: #0 D:\wamp\apache\htdocs\smarty\libs\sysplugins\smarty_internal_templatecompilerbase.php(441): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown tag "po...', 53) #1 D:\wamp\apache\htdocs\smarty\libs\sysplugins\smarty_internal_templateparser.php(2393): Smarty_Internal_TemplateCompilerBase->compileTag('popup_init', Array) #2 D:\wamp\apache\htdocs\smarty\libs\sysplugins\smarty_internal_templateparser.php(3096): Smarty_Internal_Templateparser->yy_r36() #3 D:\wamp\apache\htdocs\smarty\libs\sysplugins\smarty_internal_templateparser.php(3196): Smarty_Internal_Templateparser->yy_reduce(36) #4 D:\wamp\apache\htdocs\smarty\libs\sysplugins\smarty_internal_smartytemplatecompiler.php(105): Smarty_Int in D:\wamp\apache\htdocs\smarty\libs\sysplugins\smarty_internal_templatecompilerbase.php on line 656
參考下:http://blog.csdn.net/xiaoxiaorenky/article/details/6326298