This has been discussed before. Short answer: bootstrap.php
See the following: http://groups.google.com/group/cake-php/search?group=cake-php&q=globally+available+function&qt_g=Search+this+group http://img246.imageshack.us/my.php?image=usefulbookhj0.jpg On Apr 8, 10:41 am, stefanb <[EMAIL PROTECTED]> wrote: > Where is one supposed to put generally applicable functions that > should be available throughout the application, or better still; > across several applications? > > What I would prefer is to have a class, or several classes, containing > static functions, like: > > <?php > class StringFunctions > { > public static function checkString($string) > { > //return something > }} > > ?> > > and be able to call such functions from all controllers, models, views > etc... > > Or is there a more cakeish way to do this? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
