Okay, let me try this again.

Suppose my app looks like this (in part):

/main/index.cfm:
<!--- standard fusebox stuff --->

/main/circuits.cfm:
<cfset circuits = structNew()>
<cfset circuits.man = "Main">
<cfset circutis.con = "Main.Contacts">

/main/contacts/index.cfm: 
<!--- standard fusebox stuff --->

/main/contacts/circuits.cfm:
<cfset circuits = structNew()>
<cfset circutis.con = "Contacts">

So far, so good, right? Normally, "main" is my home app,
but I can use Contacts as a standalone if necessary. Let 
me know if I've done something wrong at this point. Now
suppose I wanted to drop in a new circuit called connection.

/main/connection/index.cfm: 
<!--- standard fusebox stuff --->

/main/connection/circuits.cfm:
<cfset circuits = structNew()>
<cfset circuits.con = "Conection">

This is where I'm stuck. The alias "con" is already taken
by "contacts," so how do I make "connection" work?

Patrick

> -----Original Message-----
> From: Mike Craig [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 28, 2001 5:08 PM
> To: Fusebox
> Subject: RE: Nesting circuits: I just don't get it! :(
> 
> 
> That depends on what you mean by plug.  If you are going to use a 
> circuit in
> another "home" application, you should copy it there and update your home
> circuits.cfm file to include the reference.  If you want to share it at a
> higher level between applications, the same is true, you still 
> need to point
> a circuit reference in the home application to the circuit in 
> question.  In
> the latter case, its not really nested, but the principle is still true.
> 
> 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