diff --git a/framework/base/Action.php b/framework/base/Action.php index f4e32b98f3..f808a5268d 100644 --- a/framework/base/Action.php +++ b/framework/base/Action.php @@ -85,8 +85,9 @@ class Action extends Component Yii::$app->requestedParams = $args; } if ($this->beforeRun()) { - call_user_func_array([$this, 'run'], $args); + $result = call_user_func_array([$this, 'run'], $args); $this->afterRun(); + return $result; } }