Browse Source

Fixed actions() docs where alias was used to refer to class

tags/2.0.0-beta
Alexander Makarov 11 years ago
parent
commit
af778d1a13
  1. 2
      docs/guide/controller.md
  2. 4
      framework/yii/base/Controller.php

2
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',
],
];

4
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',
* ],

Loading…
Cancel
Save