From d8cf758187a1cd231065ca9cee0401810246e0ac Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Thu, 19 Dec 2013 13:21:26 +0100 Subject: [PATCH] Update controller.md Fixes #1577 --- docs/guide/controller.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } ```