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