/** * Lists all Province models. * @return mixed */ public function actionIndex() { if (ProvinceAccess::allowIndex() == FALSE) { throw ProvinceAccess::exception('index'); } $searchModel = new ProvinceSearch(); $dataProvider = $searchModel->searchIndex($_GET); Tabs::clearLocalStorage(); Url::remember(); \Yii::$app->session['__crudReturnUrl'] = null; return $this->render('index', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]); }