#1 benben
环境:Apache:2.4
PHP:5.3
版本:
SpeedPHP:3.1.89
Smarty:3.1.12
代码:
controller(main.php):
class main extends spController
{
function __construct() {
parent::__construct();
}
function test(){
$this->greet="hello world";
$this->display("test.html");
}
}
tpl(test.html):
<{$greet}>
访问/index.php?c=main&a=test
提示错误信息:
Notice: Undefined property: Smarty::$engine in /Users/qlyan/www/goodteacher/SpeedPHP/Drivers/Smarty/Smarty.class.php on line 671
Fatal error: Call to a member function assign() on a non-object in /Users/qlyan/www/goodteacher/SpeedPHP/Core/spController.php on line 89
怀疑是tmp权限问题,增加后还是同样的问题:
现在tmp 目录权限为drwxrwxrwx
2016-08-09 22:48:49