当前位置:Gxlcms > PHP教程 > $user_m=newUsers();

$user_m=newUsers();

时间:2021-07-01 10:21:17 帮助过:17人阅读

Application error

$user_m=new Users();时就An error occurred
Application error。注释掉$user_m=new Users();这句就正常。有没有人懂呀,指点一下。


回复讨论(解决方案)

你Users的类定义是?

你定义的类Users是什么,看看这个是否有错。

是YII 框架?尝试$user_m = Users::model():检查Users类,对应的表是user还是users

zend framework,自己搞定了。Bootstrap.php这个文件忘记写这个了,没继承下来。
public function __construct($app){
parent::__construct($app);
}
还是谢谢你们。

人气教程排行