diff --git a/docs/guide/controller.md b/docs/guide/controller.md index 584c738..c07968b 100644 --- a/docs/guide/controller.md +++ b/docs/guide/controller.md @@ -144,7 +144,7 @@ If action is generic enough it makes sense to implement it in a separate class t Create `actions/Page.php` ```php -namespace \app\actions; +namespace app\actions; class Page extends \yii\base\Action { @@ -152,7 +152,7 @@ class Page extends \yii\base\Action public function run() { - $this->controller->render($view); + return $this->controller->render($view); } } ```