Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working for admin prefix #70

Open
faizplus opened this issue Jan 31, 2016 · 4 comments
Open

Not working for admin prefix #70

faizplus opened this issue Jan 31, 2016 · 4 comments

Comments

@faizplus
Copy link

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?

@tigrang
Copy link
Owner

tigrang commented Feb 1, 2016

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

@faizplus
Copy link
Author

faizplus commented Feb 3, 2016

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

@tigrang
Copy link
Owner

tigrang commented Feb 3, 2016

Can you try adding this to the helper config:

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

@tigrang
Copy link
Owner

tigrang commented Apr 3, 2016

@faizplus did the above work for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants