diff --git a/yii/base/Controller.php b/yii/base/Controller.php index 9572636..3b16a93 100644 --- a/yii/base/Controller.php +++ b/yii/base/Controller.php @@ -203,7 +203,7 @@ class Controller extends Component public function forward($route, $params = array()) { $status = $this->run($route, $params); - exit($status); + Yii::$app->end($status); } /**