Well, just think of how the function will be used. In CakePHP, you can split things up into components, helpers and behaviors as well. CakePHP is just PHP so you can technically put the function anywhere. If you put it in your AppController all of your controllers will have access to it. If you put it in a Component then controllers with that component have access to it. If you need it in your view, maybe it belongs in a Helper?
Really you want to just place things where they logically belong. From what you wrote, it sounds like it has to do with the response which would belong in the controller or as a component. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
