php fatal error: uncaught exception 'smartycompilerexception' with message 'syn
php fatal error: uncaught exception 'smartycompilerexception' with message 'syntax error in template view/template\header.tpl on line 54 {/foreach} unexpected closing tag' in d:\www_root\quba133\web\core\smarty-3.0.9\libs\sysplugins\smarty_internal_templatecompilerbase.php:439
stack trace:
#0 d:\www_root\quba133\web\core\smarty-3.0.9\libs\sysplugins\smarty_internal_compilebase.php(145): smarty_internal_templatecompilerbase->trigger_template_error('unexpected clos...', 54)
#1 d:\www_root\quba133\web\core\smarty-3.0.9\libs\sysplugins\smarty_internal_compile_foreach.php(206): smarty_internal_compilebase->_close_tag(array)
#2 d:\www_root\quba133\web\core\smarty-3.0.9\libs\sysplugins\smarty_internal_templatecompilerbase.php(284): smarty_internal_compile_foreachclose->compile(array, object(smarty_internal_smartytemplatecompiler), array, null, null)
#3 d:\www_root\quba133\web\core\smarty-3.0.9\libs\sysplugins\smarty_internal_templatecompilerbase.php(123): smarty_internal_templatecompilerbase->calltagcompiler('foreachclose', arr in d:\www_root\quba133\web\core\smarty-3.0.9\libs\sysplugins\smarty_internal_templatecompilerbase.php on line 439
------解决思路----------------------
在模板 view/template\header.tpl 的第 54 行处,意外的遇到了循环结束标记 {/foreach}
即你只有 {/foreach} 而没有 {foreach ....}