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