/** * Manages all models. */ public function actionAdmin() { $model = new Managementtype('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Managementtype'])) { $model->attributes = $_GET['Managementtype']; } if ($this->isExportRequest()) { $this->exportCSV($model->search(), array('name')); } $this->render('admin', array('model' => $model)); }