示例#1
0
 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]);
 }
示例#2
0
 /**
  * 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]);
 }