I have used dektrium/yii2-user in my application.
And there is a method named getID()
in User.php of vendor/dektrium and this method can be accessed by Yii::$app->user->getID()
and returns id
of the logged in user.
However, there is another method named getProfile()
whose function is to return complete profile details of currently logged in user. But, this method is giving 500-internal server error.
exception 'yii\base\UnknownMethodException' with message 'Calling unknown method: yii\web\User::getProfile()' in ... ...
I Googled the issue but found nothing... Help me folks..