public function actionIndex() { $gallerySearch = new GallerySearch(); $galleryProvider = $gallerySearch->search($_GET); return $this->render('index', compact('gallerySearch', 'galleryProvider')); }
/** * Lists all Gallery models. * @return mixed */ public function actionIndex() { $searchModel = new GallerySearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]); }