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