SMARTY上的错误

kaifadi 2011-04-11 11:28:26
从官网上下载了smarty3.0.7,然后放到WEB站点下运行,直接运行里面的DEMO里的index.php出现如下错误,望指教,谢谢!

/*%%SmartyNocache:119404da31b2e2b2922-84595868%%*//*/%%SmartyNocache:119404da31b2e2b2922-84595868%%*/
Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template ".\templates\header.tpl" on line 3 "{popup_init src="/javascripts/overlib.js"}" unknown tag "popup_init"' in D:\phpstudy\Smarty3\libs\sysplugins\smarty_internal_templatecompilerbase.php:431 Stack trace: #0 D:\phpstudy\Smarty3\libs\sysplugins\smarty_internal_templatecompilerbase.php(253): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown tag "po...', 3) #1 D:\phpstudy\Smarty3\libs\sysplugins\smarty_internal_templateparser.php(2319): Smarty_Internal_TemplateCompilerBase->compileTag('popup_init', Array) #2 D:\phpstudy\Smarty3\libs\sysplugins\smarty_internal_templateparser.php(2812): Smarty_Internal_Templateparser->yy_r35() #3 D:\phpstudy\Smarty3\libs\sysplugins\smarty_internal_templateparser.php(2912): Smarty_Internal_Templateparser->yy_reduce(35) #4 D:\phpstudy\Smarty3\libs\sysplugins\smarty_internal_smartytemplatecompiler.php(51): Smarty_Internal_Templateparser->doParse(11, '?') #5 D:\phpstudy\Sma in D:\phpstudy\Smarty3\libs\sysplugins\smarty_internal_templatecompilerbase.php on line 431
...全文
119 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
phper530 2011-04-11
  • 打赏
  • 举报
回复
在.\templates\header.tpl文件里应该有这么一行,如下:
{popup_init src="/javascripts/overlib.js"}
该行应该有错误,把它删除再试看看 !

21,880

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧