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