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