/** * Lists all ImageGallery models. * @return mixed */ public function actionIndex() { $searchModel = new ImageGallerySearch(); $dataProvider = $searchModel->search($_GET); Url::remember(); // clear all parent route information in cookies Tabs::clearParentRelationRoute($this->id); return $this->render('index', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]); }