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