public function actionIndex() { \Yii::$app->view->title = "Advert Manager"; $search = new AdvertSearch(); $dataProvider = $search->search(\Yii::$app->request->queryParams); return $this->render("index", ['dataProvider' => $dataProvider]); }
/** * Lists all Advert models. * @return mixed */ public function actionIndex() { $searchModel = new AdvertSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]); }