I purchased and am reading through the fusebook, and I'm wondering if I have
the correct interpretation of one of its recommendations:
1) don't use application.cfm
2) use app_globals.cfm
3) cfinclude app_globals.cfm in your index.cfm file
4) use request scope to access those variables in code that is accessed
through cfincludes and custom tags
The problem (and I assume quite a known one) I had previously was that
application scope variables could be read by cfincludes, but not by custom
tags since they are in their own memory space. This appears to be the reason
application.cfm is recommended against, and the purpose of using the request
scope -- that it works for both cfincludes and custom tags. Is this correct?
If so, what is the magic behind the request scope, and how much performance
does it cost? I've got 50 application-wide variables, and I hate to set them
every page request.
Thanks,
Matt
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists