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