Commit d8cf7581 by Carsten Brandt

Update controller.md

Fixes #1577
parent 21fff942
...@@ -144,7 +144,7 @@ If action is generic enough it makes sense to implement it in a separate class t ...@@ -144,7 +144,7 @@ If action is generic enough it makes sense to implement it in a separate class t
Create `actions/Page.php` Create `actions/Page.php`
```php ```php
namespace \app\actions; namespace app\actions;
class Page extends \yii\base\Action class Page extends \yii\base\Action
{ {
...@@ -152,7 +152,7 @@ class Page extends \yii\base\Action ...@@ -152,7 +152,7 @@ class Page extends \yii\base\Action
public function run() public function run()
{ {
$this->controller->render($view); return $this->controller->render($view);
} }
} }
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment