/**
  * 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]);
 }
Esempio n. 2
0
 public function actionExcel()
 {
     $searchModel = new PersonaSearch();
     $dataProvider = $searchModel->excel(['ModelSearch']);
     return $this->renderPartial('excel', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }