/** * Lists all Concert models. * @return mixed */ public function actionIndex() { Country::getAll(); $dataProvider = new ActiveDataProvider(['query' => Concert::find()]); return $this->render('index', ['dataProvider' => $dataProvider]); }
public function actionIndex() { $query = Concert::find(); $dataProvider = new ActiveDataProvider(['query' => $query, 'pagination' => ['pageSize' => 20]]); return $this->render('index', ['dataProvider' => $dataProvider]); }
public function actionList() { $all = Concert::find()->all(); return $this->render('listindex', ['models' => $all]); }
public function actionConcerts() { return $this->render('concerts', ['concerts' => Concert::find()->orderBy('date asc')->all()]); }