From 9d53fdc520e5aa1752716c2047f1828ef5167695 Mon Sep 17 00:00:00 2001 From: Christopher Vrooman <cdvrooman@gmail.com> Date: Wed, 19 Nov 2014 18:26:12 -0300 Subject: [PATCH] Update structure-widgets.md Minor syntax changes. --- docs/guide/structure-widgets.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/guide/structure-widgets.md b/docs/guide/structure-widgets.md index 83ba7bc..919dbaa 100644 --- a/docs/guide/structure-widgets.md +++ b/docs/guide/structure-widgets.md @@ -24,7 +24,7 @@ if you want to learn about the usage of a particular widget. Widgets are primarily used in [views](structure-views.md). You can call the [[yii\base\Widget::widget()]] method to use a widget in a view. The method takes a [configuration](concept-configurations.md) array for initializing the widget and returns the rendering result of the widget. For example, the following code inserts a date picker -widget which is configured to use Russian language and keep the input in the `from_date` attribute of `$model`. +widget which is configured to use the Russian language and keep the input in the `from_date` attribute of `$model`. ```php <?php @@ -138,7 +138,7 @@ class HelloWidget extends Widget } ``` -As you can see, PHP output buffer is started in `init()` so that any output between the calls of `init()` and `run()` +As you can see, PHP's output buffer is started in `init()` so that any output between the calls of `init()` and `run()` can be captured, processed and returned in `run()`. > Info: When you call [[yii\base\Widget::begin()]], a new instance of the widget will be created and the `init()` method @@ -189,4 +189,4 @@ which can be utilized to solve the problem. When a widget contains view code only, it is very similar to a [view](structure-views.md). In fact, in this case, their only difference is that a widget is a redistributable class, while a view is just a plain PHP script -that you would prefer to keep it within your application. +that you would prefer to keep within your application. -- libgit2 0.27.1