crazydouble
- crazydouble 2016-03-07 已签到连续签到1天,获得了5个金钱
- crazydouble 回复了 crazydouble 的评论
安装后访问http://local/test/iisns-master/frontend/web/
提示报错
PHP Notice – yii\base\ErrorExceptionTrying to get property of non-object
in /Applications/MAMP/htdocs/test/iisns-master/frontend/modules/user/controllers/DashboardController.php at line 112
103104105106107108109110111112113114115 return $this->render('myfavor');
}/**
- Finds the User model based on its primary key value.
- @return User the loaded model
*/
protected function findModel()
{
$id = Yii::$app->user->identity->id;
return User::findOne($id);
}
}
这是什么情况 应该访问哪个页面?
$id = Yii::$app->user->identity->id; 这行报错的
安装后访问http://local/test/iisns-master/frontend/web/
提示报错
PHP Notice – yii\base\ErrorExceptionTrying to get property of non-object
in /Applications/MAMP/htdocs/test/iisns-master/frontend/modules/user/controllers/DashboardController.php at line 112
103104105106107108109110111112113114115 return $this->render('myfavor');
}/**
- Finds the User model based on its primary key value.
- @return User the loaded model
*/
protected function findModel()
{
$id = Yii::$app->user->identity->id;
return User::findOne($id);
}
}
这是什么情况 应该访问哪个页面?
- crazydouble 2016-01-11 已签到连续签到1天,获得了5个金钱
- crazydouble 2016-01-08 已签到连续签到1天,获得了5个金钱