From af778d1a13f8a7736911be02e5273cf61c1a2d7f Mon Sep 17 00:00:00 2001 From: Alexander Makarov <sam@rmcreative.ru> Date: Wed, 27 Nov 2013 13:36:05 +0400 Subject: [PATCH] Fixed actions() docs where alias was used to refer to class --- docs/guide/controller.md | 2 +- framework/yii/base/Controller.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/guide/controller.md b/docs/guide/controller.md index a668ba7..571a833 100644 --- a/docs/guide/controller.md +++ b/docs/guide/controller.md @@ -167,7 +167,7 @@ public SiteController extends \yii\web\Controller { return [ 'about' => [ - 'class' => '@app/actions/Page', + 'class' => 'app\actions\Page', 'view' => 'about', ], ]; diff --git a/framework/yii/base/Controller.php b/framework/yii/base/Controller.php index c8f2d48..8ae93f0 100644 --- a/framework/yii/base/Controller.php +++ b/framework/yii/base/Controller.php @@ -87,9 +87,9 @@ class Controller extends Component implements ViewContextInterface * * ~~~ * return [ - * 'action1' => '@app/components/Action1', + * 'action1' => 'app\components\Action1', * 'action2' => [ - * 'class' => '@app/components/Action2', + * 'class' => 'app\components\Action2', * 'property1' => 'value1', * 'property2' => 'value2', * ], -- libgit2 0.27.1