Ken Redler
Member since Dec 9, 2009
- Profile: /members/4913-ken-redler.htm
- Comments: 2
Recent Blog Comments By Ken Redler
-
Creating Globally Accessible User Defined Functions In ColdFusion (Safer Version)
Posted on Dec 9, 2009 at 10:39 AM
Good point -- structappend() is even better, assuming you don't need to inspect the function names individually. And I suppose it's unlikely you would, unless you're in some highly dynamic or unpredictable context (e.g., you're writing a framework or plug-in that could be used across multiple CFML e... read more »
-
Creating Globally Accessible User Defined Functions In ColdFusion (Safer Version)
Posted on Dec 9, 2009 at 12:39 AM
Just set up your utility methods/functions in an application-scoped singleton as David suggests, then loop over the collection of functions at the top of your onRequest, assigning each to a same-named alias in the variables (or unnamed) scope. You can even programmatically disambiguate the function ... read more »