Im trying to do datatable server side processing pagination using cakephp anyone explain how to do?

Im trying to do datatable server side processing pagination using cakephp anyone explain how to do?

deena1994deena1994 Posts: 1Questions: 1Answers: 0
edited January 2 in Free community support

$(document).ready(function() {

$('#example').dataTable({
    "processing": true,
    "serverSide": true,
    "ajax": {
         "url": '<?php echo $baseurl; ?>service_bookings/get_leads',
        "type": "POST",



        }

    },

});

});

Answers

  • allanallan Posts: 63,356Questions: 1Answers: 10,444 Site admin

    The fact that you are using CakePHP makes little to no difference to DataTables. As long as you respond with the JSON structure that DataTables expects, then it will work on any platform.

    Are you writing your own server-side PHP code for it, or are you using our demo SSP class or our Editor PHP libraries?

    What JSON response is the script currently returning? If you could link to a test case showing the issue, per the template text that you deleted and the forum rules that would help resolve some of my questions.

    Allan

Sign In or Register to comment.