Browse Source

Update controller.md

Fixes #1577
tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
d8cf758187
  1. 4
      docs/guide/controller.md

4
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);
}
}
```

Loading…
Cancel
Save