/**
  * Lists all Category models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new CategorySearch();
     $dataProvider = $searchModel->search($_GET);
     Tabs::clearLocalStorage();
     Url::remember();
     \Yii::$app->session['__crudReturnUrl'] = null;
     return $this->render('index', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]);
 }
 /**
  * Lists all Category models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new CategorySearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }