I might be oversimplifying but wouldn't a component accomplish this for you?
On Oct 19, 8:23 pm, adam <[email protected]> wrote: > Hey all, > > Curious about a design pattern I schemed up while daydreaming at work > today. Instead of littering every controller with actions that are > used for standard ajax requests(ajax_validate, ajax_save, etc), I > thought up using an AjaxController, with no table, that has those > standard actions. The first parameter for each action is $model, > which is a string representing the model name for the intended > action. The action then instantiates the model, performs the action, > etc, and returns the data/result. > > Any ideas? Should I try it? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
