/** * Formulario para ingresar/editar rol * @throws Exception */ public function form() { $params = $this->input->post(null, true); $rol = $this->rol_model->getById($params["id"]); if (!is_null($rol)) { $data = array("id" => $rol->rol_ia_id, "nombre" => $rol->rol_c_nombre); } else { $data = array(); } $this->load->view("pages/mantenedor_rol/form", $data); }