|
发表于 2012-5-5 10:23:57
|
显示全部楼层
kissgxd 发表于 2012-5-3 14:03
你贴一下代码 PHP复制代码 /**
* 构造方法
*/
function __construct (){
parent ::__construct ();
$this->session->userdata['user_id']!='' ? : redirect ('login');
$this->load->model('video_model','video');
$this->load->model('user_model','user');
}
private function getUserById ($uid){
$result = $this->user->userById($uid);
file_put_contents('result.txt', var_export($result,true));
exit();
}
复制代码
HTML复制代码
A PHP Error was encounteredSeverity: Notice
Message: Undefined property: Video: user
Filename: controllers/video.php
Line Number: 47
复制代码
|
|