From 9079179f5028161978ac431eb51669fa20c3204f Mon Sep 17 00:00:00 2001 From: Vasiliy Baukin <vasiliy.baukin@gmail.com> Date: Sat, 13 Sep 2014 16:02:48 +0400 Subject: [PATCH] Update structure-views.md Above/below code reference fix --- docs/guide/structure-views.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/structure-views.md b/docs/guide/structure-views.md index 459ab1b..f4dff10 100644 --- a/docs/guide/structure-views.md +++ b/docs/guide/structure-views.md @@ -264,7 +264,7 @@ echo $this->render('report', [ ``` The pull approach actively retrieves data from the [[yii\base\View|view component]] or other objects accessible -in views (e.g. `Yii::$app`). Using the above code as an example, within the view you can get the controller object +in views (e.g. `Yii::$app`). Using the code below as an example, within the view you can get the controller object by the expression `$this->context`. And as a result, it is possible for you to access any properties or methods of the controller in the `report` view, such as the controller ID shown in the following: -- libgit2 0.27.1