public function actionShowupdatecolorsizeimage($item_id)
 {
     $showupdatedetails = false;
     $showColorNumberSelection = true;
     $showColorSizeImageSelection = true;
     $itemData = (new Item())->getItemData($item_id);
     $itemModel = new Item(['item_id' => $itemData['item_id'], 'item_name' => $itemData['item_name'], 'item_mirrorval' => $itemData['item_mirrorval'], 'item_sub_category_id' => $itemData['item_sub_category_id'], 'item_hashTag' => $itemData['item_hashTag']]);
     $colors = (new Colors())->getColors();
     $mirrorValues = array(1, 2, 3, 4, 5);
     $itemColors = (new ItemDetails())->getItemColors($item_id);
     $itemSizes = (new ItemDetails())->getItemSizes($item_id, $itemColors[0]['item_color']);
     if ($itemModel->load(Yii::$app->request->post())) {
         print_r(Yii::$app->request->post());
     }
     return $this->render('updateitem', ['itemModel' => $itemModel, 'itemData' => $itemData, 'mirrorValues' => $mirrorValues, 'itemColors' => $itemColors, 'itemSizes' => $itemSizes, 'showupdatedetails' => $showupdatedetails, 'showColorNumberSelection' => $showColorNumberSelection, 'showColorSizeImageSelection' => $showColorSizeImageSelection, 'colorNumbers' => $this->colorNumbers, 'colors' => $colors]);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getItems()
 {
     return $this->hasMany(Item::className(), ['item_sub_category_id' => 'sub_category_id']);
 }
 public function getItemCount()
 {
     return Item::find()->count();
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getItem()
 {
     return $this->hasOne(Item::className(), ['item_id' => 'item_id']);
 }