cakephp-datatable
cakephp-datatable copied to clipboard
Not working for admin prefix
First of all, I would like to thank you for your great effort for making this plugin. This is working fine on all actions without prefix but when i try to add same data table in admin panel like 'admin_index' action it goes looking for admin_processDataTableRequest function which fails.
I renamed the function in the trait from processDataTableRequest to admin_processDataTableRequest and it is working fine but is there any other way to do that?
Are you using the helper to generate the table/javascript?
yes i am using public $helpers = [ 'DataTable.DataTable' ];
Can you try adding this to the helper config:
'js' => array(
'sAjaxSource' => array('action' => 'processDataTableRequest', 'prefix' => false),
),
@faizplus did the above work for you?