Sử dụng php://input để lấy dữ liệu từ http post XML: Sau đó convert dữ liệu từ chuỗi XML sang dạng đổi tượng Cuối cùng đưa về dạng Json để xử lý dữ liệu Ví dụ: Để gọi được User_ID từ chuỗi XML như này Source Code như sau:
Màn hình setting thêm sửa xóa B1: Tạo file PHP trong view VD: modules/Accounts/views/Settings.php Tạo function process sẽ gọi ra $viewe = $this->getViewer ($request); $viewer truyền biến sang tpl VD: $viewer->assign(‘value’,$var) $viewer sẽ trỏ về đường dẫn tpl VD:$viewer->view(‘DashBoardFunnelChart.tpl’, $moduleName) B2: Tạo file tpl theo đường dẫn trỏ ở trên . . . Read more
Thêm đoạn code trên vào đầu index.php. Sử dụng dd để debug hoặc if(isDev){…} 118.70.15.19 là địa chỉ ip của cty hà nội
Sorry you have no rights to view this entry!
Sorry you have no rights to view this entry!
Sorry you have no rights to view this entry!
Sorry you have no rights to view this entry!
Sorry you have no rights to view this entry!
Sorry you have no rights to view this entry!