I know this has been talked about and written about a lot but I still can't seem to find a consensus on the matter: What is the best way to share global functions throughout your entire application, including being available in custom tags and ESPECIALLY CFCs?
Here's what I've run into: 1. Put your functions in a Utils CFC and create it in the Application scope or Request scope. 2. Put your functions in a cfm file and name each function application.xxxx (or request.xxxx) and include that file in application.cfc 3. There are many more ways that I've run into which I can't seem to remember right now :) Basic Questions - What's better, application scope or request scope? - Is it not horribly bad to refer to outside scopes form CFCs? Cheers, Baz ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
