コード例 #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]);
 }
コード例 #2
0
ファイル: SiteController.php プロジェクト: acyuta/zvezdy
 public function actionIndex()
 {
     $query = Concert::find();
     $dataProvider = new ActiveDataProvider(['query' => $query, 'pagination' => ['pageSize' => 20]]);
     return $this->render('index', ['dataProvider' => $dataProvider]);
 }
コード例 #3
0
 public function actionList()
 {
     $all = Concert::find()->all();
     return $this->render('listindex', ['models' => $all]);
 }
コード例 #4
0
 public function actionConcerts()
 {
     return $this->render('concerts', ['concerts' => Concert::find()->orderBy('date asc')->all()]);
 }