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