Datatables and ORM Model |
Hi
I'm building a new ORM Model, which uses sqlsrv driver and works PHP Code: <?php I load that model from a Library and return data to Controller Code: $data = json_encode($this->mymodel->findAll()); Now, I must use Datatables in the view, with serverSide=true and Ajax property pointing to Controller's url The json format for Datatables is custom and must have additional fields (draw, recordsTotal, data, etc.) https://datatables.net/manual/server-side Code: { PS: I've already seen https://github.com/hermawanramadhan/Code...DataTables but it won't fit my needs in future Does anyone have an example about how to build that custom json using the methods from ORM ? Thanks a lot for any tip you can give me
Enrique
https://beza.com.ar |
Messages In This Thread |
Datatables and ORM Model - by kabeza - 04-07-2022, 08:49 AM
RE: Datatables and ORM Model - by JustJohnQ - 04-07-2022, 11:38 PM
RE: Datatables and ORM Model - by kabeza - 04-08-2022, 04:41 AM
|