/**
  * Lists all Concert models.
  * @return mixed
  */
 public function actionIndex()
 {
     Country::getAll();
     $dataProvider = new ActiveDataProvider(['query' => Concert::find()]);
     return $this->render('index', ['dataProvider' => $dataProvider]);
 }
Beispiel #2
0
 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]);
 }
Beispiel #4
0
 public function actionConcerts()
 {
     return $this->render('concerts', ['concerts' => Concert::find()->orderBy('date asc')->all()]);
 }