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