mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 14:26:54 +08:00
Fixed actions() docs where alias was used to refer to class
This commit is contained in:
@ -167,7 +167,7 @@ public SiteController extends \yii\web\Controller
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'about' => [
|
'about' => [
|
||||||
'class' => '@app/actions/Page',
|
'class' => 'app\actions\Page',
|
||||||
'view' => 'about',
|
'view' => 'about',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
@ -87,9 +87,9 @@ class Controller extends Component implements ViewContextInterface
|
|||||||
*
|
*
|
||||||
* ~~~
|
* ~~~
|
||||||
* return [
|
* return [
|
||||||
* 'action1' => '@app/components/Action1',
|
* 'action1' => 'app\components\Action1',
|
||||||
* 'action2' => [
|
* 'action2' => [
|
||||||
* 'class' => '@app/components/Action2',
|
* 'class' => 'app\components\Action2',
|
||||||
* 'property1' => 'value1',
|
* 'property1' => 'value1',
|
||||||
* 'property2' => 'value2',
|
* 'property2' => 'value2',
|
||||||
* ],
|
* ],
|
||||||
|
Reference in New Issue
Block a user