示例#1
0
 public function actionAlbum()
 {
     $searchModel = new AlbumSearch();
     $post = Yii::$app->request->post();
     $post['pageSize'] = 10;
     $dataProvider = $searchModel->search($post);
     return $this->render('lookupAlbum', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider, 'searchParams' => $post]);
 }
示例#2
0
 /**
  * Lists all Album models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new AlbumSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->post());
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider, 'searchParams' => Yii::$app->request->post()]);
 }