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