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