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