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,应该是没问题的啊...
但是为什么新建模板就是报错..- -
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,应该是没问题的啊...
但是为什么新建模板就是报错..- -
php.ini中找到error_reporting改为 error_reporting = E_ALL & ~E_NOTICE 重启apache。第二个错误。
vertrigo是什么啊。也是服务器? apache也是Web服务器。不是重复了吗。
依然是这样报错...- -
Notice: Undefined property: Smarty::$cacheing in D:\develop\PHP\VertrigoServ\www\learn\smarty\libs\Smarty.class.php on line 669
Call Stack
# Time Memory Function Location
1 0.0006 333000 {main}( ) ..\index.php:0
2 0.0114 1526840 Smarty->__set( ) ..\index.php:8
3 0.0114 1527664 trigger_error ( ) ..\Smarty.class.php:669( ! ) 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
( ! ) SmartyException: Call of unknown method 'hisplay'. in D:\develop\PHP\VertrigoServ\www\learn\smarty\libs\sysplugins\smarty_internal_templatebase.php on line 758
Call Stack
# Time Memory Function Location
1 0.0006 333000 {main}( ) ..\index.php:0
2 0.0116 1527672 Smarty->hisplay( ) ..\index.php:13
3 0.0116 1527872 Smarty_Internal_TemplateBase->__call( ) ..\index.php:13
属性$cacheing没有定义。Call of unknown method 'hisplay'。
调用一个未知的方法(history)...
问题是,这个smarty是我从网上下载下来的...
1、你的smarty是否是官方正式版本。
2、上面说的很清楚,缺少变量,你要注册下,比如$smarty->assign('cacheing', 这里是值);
$smarty->display('');
而不是
$smarty->hisplay("");?
多谢各位..
我的问题解决了...
是权限问题,还有就是我的PHP文件出现了中文空格...