Now I'm confused.  I think all Hal's saying is that you can "point your
browser to" different urls as the starting point of your app.  That way you
can test an individual circuit or a complete app.  This isn't to say that
you code that directory structure into your fuseaction calls (e.g., form
actions, links, cflocations).  You still call everything from a single
fusebox.  As I'm typing this I think I'm figuring it out - as I don't use
the official "Hal9000" method.  I think the key is that you specify the
location of this "master" index in your myGlobals file (e.g.,  <cfset
request.CFROOT="/whatever/">).  You then call the master index using this
variable.  If you use <cfparam> instead of <cfset> then you can set this in
each myGlobals file, and whichever one is called first will take affect.

So if you call the app from the real root, you'd end up pointing to the real
root index.cfm, but if you call the app from a subdirectory (by pointing
your browser there), in order to test a circuit app, then the "master" root
index.cfm would actually be the one in the circuit app's directory.  I
believe that circuits.cfm would be the same in each directory. (I don't use
circuits.cfm - but I'm beginning to like the idea).

Is that right, or am I just more confused now?


-----Original Message-----
From: Patrick McElhaney [mailto:[EMAIL PROTECTED]]
Sent: March 28, 2001 4:44 PM
To: Fusebox
Subject: RE: Nesting circuits: I just don't get it! :(



This is what I'm really interested in (quoted from an earlier post by
Hal Helms -
http://www.mail-archive.com/[email protected]/msg08051.html):

"One nice thing about this is that you can test each circuit by itself
(since
it can run unchanged as either stand-alone or nested). In test mode, you
just point your browser to www.mydomain.com/mySite/users. When you want it
as part of the bigger picture, you just point your browser to
www.mydomain.com/mySite and users fuseactions will still work fine.

The drag and drop would occur if I were to make mySite part of a bigger
application, AllSites. Then I would just create another fusebox for
AllSites, drag MySite into it, and register mySite in the Circuits.cfm file
and everything else would work without being changed."

You guys are telling me I can't do that. Is that right?

Patrick

> -----Original Message-----
> From: Mike Craig [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 28, 2001 4:27 PM
> To: Fusebox
> Subject: RE: Nesting circuits: I just don't get it! :(
>
>
> Never might be a strong word, but yes, that is true.  This is why the
> application root is the only "home" you have and your request.circuits
> structure plus the fuseaction help navigate your tree.
>
> Mike Craig
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to