Home  >  Article  >  Backend Development  >  $user_m=new Users();

$user_m=new Users();

WBOY
WBOYOriginal
2016-06-23 14:26:331467browse

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);
}
还是谢谢你们。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn