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