php - Class app\models\user not found yii2 -


i did user authentication on yii2 , in local works find after when pulled server i'm getting error class 'app\models\user' not found , marked area i'm getting

 $identity = $class::findidentity($id); 

, knows problem?

when storing class name in variable, use full namespace leading slash:

$class = '\app\models\user'; $identity = $class::findidentity($id); 

also make sure class name , namespace exists.

and class name should start capital letter - user, not user. helps avoid possible problems letter case on different os.


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -