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(); }