Tag Archives: Yii widgets

Yii Framework 2 : Create Custom Widget

This tutorial will help you to create your own custom widget in yii framework 2.0. Widgets are reusable blocks and it is used in view. To create a widget, Extend from yii\base\Widget. Override the yii\base\Widget::init() and/or yii\base\Widget::run() methods. Note: In yii 1.x, we will use component folder. Create Your Own Widget Display Your Widget Content […]