请教smarty3.0的配置

#1 azwl

我将smaty3.0.5解压后放在"Drivers/Smarty-3.0.05/"中
 
  'engine_name' => 'Smarty', // 模板引擎的类名称,默认为Smarty
  'engine_path' => SP_PATH.'/Drivers/Smarty-3.0.5/libs/Smarty.class.php', // 模板引擎主类路径



这样出错:

Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/opt/lampp/htdocs/tpl/main/index.html" on line 12 " <li>登录用户:<span id="lusername"><a href="<{spUrl c=user a=userinfo}>"><{$userinfo.username}></a></span></li>" unknown tag "spUrl"' in /opt/lampp/htdocs/SpeedPHP/Drivers/Smarty-3.0.5/libs/sysplugins/smarty_internal_templatecompilerbase.php:423 Stack trace: 0 /opt/lampp/htdocs/SpeedPHP/Drivers/Smarty-3.0.5/libs/sysplugins/smarty_internal_templatecompilerbase.php(248): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown tag "sp...', 12) 1 /opt/lampp/htdocs/SpeedPHP/Drivers/Smarty-3.0.5/libs/sysplugins/smarty_internal_templateparser.php(2273): Smarty_Internal_TemplateCompilerBase->compileTag('spUrl', Array) 2 /opt/lampp/htdocs/SpeedPHP/Drivers/Smarty-3.0.5/libs/sysplugins/smarty_internal_templateparser.php(2759): Smarty_Internal_Templateparser->yy_r35() 3 /opt/lampp/h in /opt/lampp/htdocs/SpeedPHP/Drivers/Smarty-3.0.5/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 423

2010-12-07 22:08:08

#2 jake

加入smarty 3的SP框架已经发布到SVN测试
http://speedphp.com/bbs/thread-108-1-1.html

2010-12-07 23:46:47