コード例 #1
0
 public function actionAdmin()
 {
     $this->layout = 'admin';
     $searchModel = new AlbumSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('admin', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }
コード例 #2
0
 /**
  * Lists all Album models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new AlbumSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }