>
> So this #request.self# stuff could you give me a quick rundown on the
> technique,
not much of a technique ,but just using a variable. Not every one does it,
but it does have as certain appeal.
> where you set it and does it include the directory path ?
throw it anywhere, but probably in MyGlobals.cfm is the most common, esp due
to the scope
> So my url="#request.site.cfroot#/login/index.cfm?#request.urlToken#">
should
> be
> url="#request.site.cfroot#/#request.self#?#request.urlToken#"> ?
>
yes that's right. a while back it used to be just #self# , a local var set
in index.cfm. Then it migrated to the request scope for various reasons
(mostly since it acts like a global variable not like a local variable).
Anyway the gist is that if for some reason you wanted to run your fusebox
not through "index.cfm" but say thru a file called "halhelms.cfm" then you
change this *once* in the MyGlobals.cfm and you're all set (rather than a
zillion times throughout your code). Of course if things comes to that you
might also decide to change it in your web server to be the default document
if for instance your company likes using MS's "default.htm" as the default
document)
That sounds like a rare occurance (and let's face it, Hal Helms himself is a
rare occurance!). However, the other more useful application of use
request.self is for testing purposes since now you essentially have multiple
fuseboxe potential (just create a any other file that acts like a fusebox
and on the fly request.self can be set to point there). Someone posted a
comment in the last day or two that they use it for testing their fuses for
QA. If you're comfortable with the idea of <CF_BODYCONTENT> and how you
can decide in mid-code what headerfile and footerfile you want to use, then
this has some similar overtones
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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