Don't. Trying to smash various actions from various controllers/models into the same controller is just asking for trouble. It will be hard to maintain, it will be inefficient and hard to debug.
On Jun 9, 8:41 am, "Dave Maharaj :: WidePixels.com" <[email protected]> wrote: > Just thinking about putting all my ajax functions into 1 controller but what > would it be called? Ajax Ajaxs? > > What is the best way to do something like this? > > <?php > class AjaxController extends AppController > { > var $name = 'Ajax'; > var $helpers = array('Html', 'Form'); > var $components = array('Email');} > > ?> > > Dave --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
