下面是我的模型代码
UserModel.class.php
class UserModel extends Model{
protected $trueTableName = 'user';
function __consstruct(){
parent::__construct();
}
public function UserModel(){
}
public function date(){
return 111;
}
}我在控制器IndexAction.class.php中$user = new UserModel();
$user->where('id=4')->find();报错 提示Fatal error: Call to a member function select() on a non-ob
:(
Call to a member function select() on a non-ob
错误位置
FILE: D:\apms\APMServ5.2.6\www\htdocs\App\ThinkPHP\Lib\Core\Model.class.php LINE: 606
最佳答案