To those of you that use the "ultimate URL" style of Fuseboxing, where only
the top-most fusebox is ever called, and there are no cfmodules or
cflocations to other circuit fuseboxes, but those index.cfms are instead
cfincluded, I have a question for you. If you don't know what I mean, here's
a brief example:
cfswitch listfirst(attribs.fuseaction)
cfcase value "cat"
cfset attribs.fa=listlast(attribs.fa)
cfinclude cat/index.cfm
/cfcase
cfcase value "reg"
cfset attrbs.fa=listlast(attribs.fa)
cfinclude reg/index.cfm
/cfcase
cfcase value "MainPage"
cfinclude qry_GetStuff
cfinclude dsp_DispMainPage
/cfcase
cfcase value "logout"
cfinclude act_killsession
cfinclude dsp_goodbye
/cfcase
/cfswitch
In every app_locals or myGlobals or whatever, you have
cfif not isdefined(app.appname)
cfapplication blah
/cfif
This might also be familar to some of you as the "Hal" notation, because he
do it dat way.
Okay, my question is that how in the heck do you get images to work unless
they are all off the root? If I'm in an fuseaction inside the reg/index.cfm
page, and I ask for an image from the "images/" directory in the reg
directory, how does it get them? The whole reg fusebox is cfincluded from
the main index, which isn't at "reg/", it's at "/".
Hmmm. I may not be too clear here, and if the Fusebox above scares you, we
can take this thread that way too, but in the meantime, I've been forced to
stick all my images in the root images folder, then build image folders down
from there. But that defeats the purpose of having the indexes cfincluded.
They can be called by themselves and plugged into different apps at will,
but having to pull the images from the higher level folder is not purty, in
my opinion.
Ciao-y,
Nat Papovich
Webthugs Consulting
ICQ 32676414
"People don't know the bandwidth of a FedEx truck full of diskettes."
-William Gibson
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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