0
나는 cakephp 프로젝트에서 Jtable AJAX 기반의 CRUD 테이블을 생성하기 위해 JQuery 플러그인을 사용하고있다. 내가 데이터에 액세스하고 있습니다 : 어떻게cakephp와 ajax에서 jtable 플러그인을 사용하는 방법
$('.list-of-location').jtable({
title: 'Table of location',
actions: {
getUserPlanAction:'/My/getUserPlan' // It is not used by Jtable, instad taking same page url
},
fields: {
arrivaldate:{
title: 'From',
width: '40%'
},
departuredate: {
title: 'To',
width: '40%',
key: true,
create: false,
edit: false,
list: false
},
country: {
title: 'Destination',
width: '40%'
},
regular_cost:{
title: 'reguler budget',
width: '20%'
},
backpacker_cost: {
title: 'low budget',
width: '30%',
type: 'date',
create: false,
edit: false
}
}
});
$('.list-of-location').jtable('load');
어떤 생각 : 나는 다음과 같은 방법으로 조치를 준
localhost/mydomain/ControllName/functionName i.e
localhost/mydomain/My/getUserPlan
하지만 액션 여기에
으로 동일한 페이지 URL을 복용하는 것은 내 코드입니다 나는 행동을한다. 는 또한 시도 :
1) getUserPlanAction 'getUserPlan'
2) getUserPlan를 '/ 내/getUserPlan'
3) getUserPlan를 'getUserPlan'
4) 조치를 '/내/getUserPlan '
조치의 같은그러나이 & 작업 점점 오류 없음 :
An error occured while communicating to the server.
미리 감사드립니다.