/**
  * Lists all StoreProduct models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new StoreProductSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     $statusArray = StoreProduct::getStatusArray();
     $categoryList = StoreCategory::getCategoryListArray();
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider, 'statusArray' => $statusArray, 'categoryList' => $categoryList]);
 }
 public function actionView()
 {
     $model = StoreCategory::find()->orderBy('lft')->all();
     return $this->render('view', ['model' => $model]);
 }