public function actionAdmin() { $model = new DocumentoExistente('search'); $model->unsetAttributes(); if (isset($_GET['DocumentoExistente'])) { $model->setAttributes($_GET['DocumentoExistente']); } $this->render('admin', array('model' => $model)); }