P
P
Pavel Ivanov2014-09-12 16:57:32
Yii
Pavel Ivanov, 2014-09-12 16:57:32

What can replace CWebUser and CUserIdentity in Yii 2.0?

I'm rewriting authorization to Yii 2.0, where I use calls like Yii::app()->user->getState('department'), ->getId, etc.
CWebUser, as far as I understand, was completely removed from Yii 2.0. What came to replace him?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Zelenin, 2014-09-12
@paus

'user' => [
            'class' => \yii\web\User::className(),
            'identityClass' => common\modules\user\models\User::className(),
        ],

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question