public function actionSelectsubcategory($super_cat_id)
 {
     $session = new Session();
     $session->open();
     $superCategoryData = $session['superCategoryArray'];
     $super_cat_model = new SuperCategory(['super_category_id' => $super_cat_id]);
     $categoryData = $session['categoryData'];
     $showCategory = true;
     $category_model = new Category();
     $SubCategory_model = new SubCategory();
     $showSubCategory = false;
     $SubcategoryData = '';
     $showColorNumberSelection = false;
     if ($category_model->load(Yii::$app->request->post())) {
         $showSubCategory = true;
         $SubcategoryData = $SubCategory_model->getSubCategoriesData($category_model->category_id);
         $session['SubcategoryData'] = $SubcategoryData;
     }
     return $this->render('uploaditem', ['superCategoryData' => $superCategoryData, 'super_cat_model' => $super_cat_model, 'category_model' => $category_model, 'categoryData' => $categoryData, 'showCategory' => $showCategory, 'showSubCategory' => $showSubCategory, 'SubcategoryData' => $SubcategoryData, 'SubCategory_model' => $SubCategory_model, 'showColorNumberSelection' => $showColorNumberSelection]);
 }