Chumper / Datatable

This is a laravel 4 package for the server and client side of datatables at http://datatables.net/
https://github.com/Chumper/Datatable
388 stars 154 forks source link

confused noob #128

Open web-zen opened 10 years ago

web-zen commented 10 years ago

I'm using this laravel/datatable https://github.com/Chumper/Datatable

And it uses this php function.

public function getDatatable() { return Datatable::collection(User::all(array('id','tcc_user_id'))) ->showColumns('id', 'tcc_user_id') ->searchColumns('tcc_user_id') ->orderColumns('id','tcc_user_id') ->make(); }

How can I tell what other php functions and properties are available ?

The datatables site appears to only have javascript functions https://datatables.net/

I would like to do as much on the PHP side as possible

Chumper commented 10 years ago

You can take a look at the readme or the code itself. All javascript properties can be set in php with the setOption and setCallback functions on the engines.