Datatable Complete Example

Controller

Model

Javascript (index.js)

AjaxResponse Trait