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