欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

smarty报错,该怎么处理

程序员文章站 2024-02-09 20:23:52
...
smarty报错
smarty属性报错:
Notice: Undefined property: Smarty::$cacheing in D:\develop\PHP\VertrigoServ\www\learn\smarty\libs\Smarty.class.php on line 669


smarty引擎异常:
Fatal error: Uncaught exception 'SmartyException' with message 'Call of unknown method 'hisplay'.' in D:\develop\PHP\VertrigoServ\www\learn\smarty\libs\sysplugins\smarty_internal_templatebase.php on line 758


我是用vertrigo当WEB服务器的,是用apache+mysql,应该是没问题的啊...
但是为什么新建模板就是报错..- -

------解决方案--------------------
sorry 看错了。

Undefined property: Smarty::$cacheing
属性$cacheing没有定义。

Call of unknown method 'hisplay'。。。。
调用一个未知的方法(history)...

------解决方案--------------------
搞清楚二点。
1、你的smarty是否是官方正式版本。
2、上面说的很清楚,缺少变量,你要注册下,比如$smarty->assign('cacheing', 这里是值);
------解决方案--------------------
贴出你执行的代码。看你是否遵循smarty写法。
------解决方案--------------------
你确定是
$smarty->display('');
而不是
$smarty->hisplay("");

?
smarty报错,该怎么处理

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。

相关文章

相关视频