Adding action in component in CakePHP

Posted by Jim H on Stack Overflow See other posts from Stack Overflow or by Jim H
Published on 2010-04-29T11:12:37Z Indexed on 2010/04/29 11:17 UTC
Read the original article Hit count: 365

Filed under:
|
|
|

Hi,

I'm trying to create a CakePHP component for JQuery datatables in server-side mode. I've got the datatable working but I want to componentize it so I can reuse it in multiple controllers.

When I include my new component in a controller I want it to create a new action on that controller called tabledata to handle the XHR queries from JQuery. Is such a thing possible?

I'd also like to know if I'm going about this in completely the wrong way.

© Stack Overflow or respective owner

Related posts about cakephp

Related posts about component