models/DiyWidget.php
public static function generateTemplateWidget($model){
        $templateWidget = Html::beginTag('div', ['data-id' => (string) $model->_id, 'data-category' => $model->category, 'class' => 'let_widget_origin']);
            $templateWidget .= $model->title;
        $templateWidget .= Html::endTag('div');
        
        return $templateWidget;
    }
public static function generateTemplateWidget($model){
        $templateWidget = Html::beginTag('div', ['data-id' => (string) $model->_id, 'data-category' => $model->category, 'class' => 'let_widget_origin']);
            $templateWidget .= $model->title;
        $templateWidget .= Html::endTag('div');
        
        return $templateWidget;
    }
public static function generateTemplateWidget ( $ model ) { $ templateWidget = Html :: beginTag ( 'div' , [ 'data-id' => ( string ) $ model -> _id , 'data-category' => $ model -> category , 'class' => 'let_widget_origin' ] ) ; $ templateWidget .= $ model -> title ; $ templateWidget .= Html :: endTag ( 'div' ) ; return $ templateWidget ; }
Ham hien thi widget khi duoc tao qua namespace
@param object $model thong tin cua widget khi duoc tao
@return string
Ham hien thi widget khi duoc tao qua namespace