cakephp-datatable icon indicating copy to clipboard operation
cakephp-datatable copied to clipboard

Not working for admin prefix

Open faizplus opened this issue 9 years ago • 4 comments

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?

faizplus avatar Jan 31 '16 14:01 faizplus

Are you using the helper to generate the table/javascript?

tigrang avatar Feb 01 '16 07:02 tigrang

yes i am using public $helpers = [ 'DataTable.DataTable' ];

faizplus avatar Feb 03 '16 17:02 faizplus

Can you try adding this to the helper config:

'js' => array(
    'sAjaxSource' => array('action' => 'processDataTableRequest', 'prefix' => false),
),

tigrang avatar Feb 03 '16 21:02 tigrang

@faizplus did the above work for you?

tigrang avatar Apr 03 '16 02:04 tigrang