That's probably the best practice, especialy if you might want to re-use this functionality in another app.
Another approach might be to put this code in a method of your app_controller, (which you can override by making a copy of the standard Cake file), so that all controllers in your app inherit that method. Depending upon your requirements, you might be able to put the code in one of the call backs (beforeFilter, etc) so that you don't even have to call this method in your controllers. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
