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