diff --git a/components/Controller.php b/components/Controller.php index e912c0d..dd6482b 100644 --- a/components/Controller.php +++ b/components/Controller.php @@ -23,7 +23,8 @@ public function beforeAction($action) if(Yii::$app->user->isGuest){ Yii::$app->user->setReturnUrl(Yii::$app->request->url); - return $this->redirect(['/admin/sign/in']); + Yii::$app->getResponse()->redirect(['/admin/sign/in'])->send(); + return false; } else{