How to set separate homeUrl for authenticated users and guests in yii2
问题 I'm wondering is it possible to make different homeUrl for authenticated and guest users? I have such rules in SiteController.php public function behaviors() { return [ 'access' => [ 'class' => AccessControl::className(), 'only' => ['logout', 'signup'], 'rules' => [ [ 'actions' => ['signup'], 'allow' => true, 'roles' => ['?'], 'denyCallback' => function() { return $this->redirect('/account'); } ], [ 'actions' => ['logout', 'condition'], 'allow' => true, 'roles' => ['@'], ], ], ], 'verbs' => [