private function loadProfile()
 {
     $this->load->file('application/modules/app/security_profile/form/profile_form.php');
     $resAjax = new Response_Ajax();
     $id_profile = $this->input->post('id_profile');
     $oBus = Business_App_Profile::loadProfile($id_profile);
     $data = $oBus->data();
     /* @var $eProfile eProfile  */
     $eProfile = $data['eProfile'];
     $frm_data = new Form_App_Security_Profile();
     $frm_data->setProfileEntity($eProfile);
     $resAjax->isSuccess($oBus->isSuccess());
     $resAjax->message($oBus->message());
     $resAjax->form('profile', $frm_data->toArray());
     echo $resAjax->toJsonEncode();
 }
 private function loadProfile()
 {
     $this->load->file('application/modules/app/user_profile/form/profile_form.php');
     $resAjax = new Response_Ajax();
     $id_person = Helper_App_Session::getPersonId();
     $oBus = Business_App_Person::loadByPersonId($id_person);
     $data = $oBus->data();
     /* @var $ePerson ePerson  */
     $ePerson = $data['ePerson'];
     $frm_data = new Form_App_Profile();
     $frm_data->setPersonEntity($ePerson);
     /* @var $eCiudad eCiudad */
     $oBus1 = Business_App_Ciudad::loadCiudad($ePerson->id_ciudad, $eCiudad);
     $frm_data->id_provincia = $eCiudad->id_provincia;
     $frm_data->id_pais = $eCiudad->id_pais;
     $id_profile = Helper_App_Session::getProfileId();
     $oBusP = Business_App_Profile::loadProfile($id_profile);
     $dataProfile = $oBusP->data();
     $eProfile = $dataProfile['eProfile'];
     $frm_data->name_profile = $eProfile->name;
     $resAjax->isSuccess($oBus->isSuccess());
     $resAjax->message($oBus->message());
     $resAjax->form('profile', $frm_data->toArray());
     echo $resAjax->toJsonEncode();
 }