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