
在Smarty的使用中出现了如下错误,求大神解答,多谢
Fatalerror:Uncaughtexception'SmartyException'withmessage'Callofunknownmethod'register...
Fatal error: Uncaught exception 'SmartyException' with message 'Call of unknown method 'register_function'.' in D:\AppServ\www\02\01\system\libs\sysplugins\smarty_internal_templatebase.php:806 Stack trace: #0 [internal function]: Smarty_Internal_TemplateBase->__call('register_functi...', Array) #1 D:\AppServ\www\02\01\system\system.inc.php(22): SmartyProject->register_function('unhtml', 'unhtml') #2 D:\AppServ\www\02\01\index.php(3): require_once('D:\AppServ\www\...') #3 {main} thrown inD:\AppServ\www\02\01\system\libs\sysplugins\smarty_internal_templatebase.php on line 806
展开
1个回答
展开全部
你模版语法写错了,貌似是你在模版里用 . (点)来连接字符串了!
追问
我初学Smarty,还想到这块的知识点还蛮复杂的。谢谢您的回答。
追答
慢慢就好了!
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询