Yii 2.0 widget implementation

Updated implementation for Yii framework 2.0