This commit is contained in:
Alexander Makarov
2014-09-08 00:24:40 +04:00
parent 8ff4db3c02
commit 06a3f5ff8a

View File

@ -40,7 +40,7 @@ $this->title = 'Login';
Within a view, you can access `$this` which refers to the [[yii\web\View|view component]] managing
and rendering this view template.
Besides `$this`, there may be other predefined variables in a view, such as `$form` and `$model` in the above
Besides `$this`, there may be other predefined variables in a view, such as `$model` in the above
example. These variables represent the data that are *pushed* into the view by [controllers](structure-controllers.md)
or other objects whose trigger the [view rendering](#rendering-views).