mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-27 20:40:22 +08:00
Merge pull request #5866 from softark/docs-guide-structure-views-typo
[skip ci] Docs guide structure views typo
This commit is contained in:
@@ -42,7 +42,7 @@ and rendering this view template.
|
|||||||
|
|
||||||
Besides `$this`, there may be other predefined variables in a view, such as `$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)
|
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).
|
or other objects which trigger the [view rendering](#rendering-views).
|
||||||
|
|
||||||
> Tip: The predefined variables are listed in a comment block at beginning of a view so that they can
|
> Tip: The predefined variables are listed in a comment block at beginning of a view so that they can
|
||||||
be recognized by IDEs. It is also a good way of documenting your views.
|
be recognized by IDEs. It is also a good way of documenting your views.
|
||||||
|
|||||||
Reference in New Issue
Block a user