Difference between #83 and #84 of
Yii v2 snippet guide III

Revision #84 has been created by rackycz on Apr 1, 2021, 10:31:11 PM with the memo:

Custom Widgets
« previous (#83) next (#85) »

Changes

Title unchanged

Yii v2 snippet guide III

Category unchanged

Tutorials

Yii version unchanged

2.0

Tags unchanged

tutorial,yii2,beginer

Content changed

[...]
```
And this is basically it. Now we know how to use AdminLTE and fix the GridView. At least one extension will be needed to render widgets, see above.

**Creating custom Widget**
--
See official reading about [Widgets](https://www.yiiframework.com/doc/guide/2.0/en/structure-widgets) or this [explanation](https://www.codevoila.com/post/33/yii2-example-create-yii2-custom-widget-advanced-part). I am presenting [this example](http://www.bsourcecode.com/yiiframework2/how-to-create-custom-widget-in-yii2-0-framework/), but I added 3 rows.

 
 
 Both types of Widgets can be coded like this:

```php
namespace app\components;
use yii\base\Widget;
use yii\helpers\Html;
[...]
8 0
4 followers
Viewed: 191 062 times
Version: 2.0
Category: Tutorials
Written by: rackycz
Last updated by: rackycz
Created on: Jan 21, 2021
Last updated: a year ago
Update Article

Revisions

View all history