app_controller is an ok solution, but can get unwielding if you have a lot of functions. I think a better approach is to make a component.
Also the specific function you described can be handled by Cake's awesome Set class. See: http://www.thinkingphp.org/2007/02/24/cake-12s-set-class-eats-arrays-for-breakfast/ On Sep 6, 4:29 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Where's the best place to put "odds & ends" functions that don't > necessarily fit in any controllers, but may apply to them all? > > For example I have a function that takes an array from a findAll, and > returns an array of the primary ids. Where should this go? > > app_controller.php? > > Thanks in advance! > > Drew. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
