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