authFile = Yii::getAlias('@app/config/rbac') . '.php'; parent::init(); if (!Yii::$app->user->isGuest) { $this->assign(Yii::$app->user->identity->id, Yii::$app->user->identity->roleId); } } }