/** * */ public function actionIndex() { $model = new Export('search'); $model->unsetAttributes(); if (isset($_GET['Export'])) { $model->attributes = $_GET['Export']; } $this->render('index', ['model' => $model]); }