public function actionAdditem(){
        // Kieu item duoc sap xep
        $type = Yii::$app->request->post('type');
        
        // Id cua diy
        $diyId = Yii::$app->request->post('diyId');
        
        // Id cua container khi sap xep position, widget, them moi position
        $containerId = Yii::$app->request->post('containerId');
        
        // Id cua position khi sap xep, them moi widget
        $positionId = Yii::$app->request->post('positionId');
        
        // So cot cua mot position
        $numberColumn = Yii::$app->request->post('numberColumn');
        
        // Id cua widget
        $draggable_id = Yii::$app->request->post('draggable_id');
        
        // Generate random item id by type
        $itemId = uniqid($type . '_');
        
        // Check type item
        switch ($type) {
            case Diy::Container:
                $template = $this->addContainer($diyId, $itemId);
                break;
            case Diy::Position:
                $template = $this->addPosition($diyId, $itemId, $containerId, $numberColumn);
                break;
            case Diy::Widget:
                $template = $this->addWidget($diyId, $itemId, $containerId, $positionId, $draggable_id);
                break;
        }
        
        echo $template;
    }