But does this mean that if I have an app that has say 25 circuits, then
whenever I update one MyGlobals.cfm file, I have to update them all? 

>From what I understand of the XFB spec, there is only one circuits.cfm, so
why can there not be only one app_model.cfm containing the site wide
variables e.g. mappings, security, dsn etc? Shouldn't the MyGlobals.cfm file
only contain variables relating to that specific circuit?

I understand that things should be modular, but when moving a child circuit
so that it becomes the parents circuit, you have to update create certain
files again, such as the circuits.cfm file which is not kept in every
circuit directory of an application.

If, for example, I put created the file called app_model.cfm to create all
the site wide structures/variables, then used the similar syntax to <cfif
NOT IsDefined( 'request.Circuits' )> statement to check if it was the parent
application then this would save time and effort if the request.site.MainDSN
variable changed. I really like the app_model.cfm idea, but it has to be
manageable.

Am I missing something really obvious?

Luke B.


-----Original Message-----
From: Erik Voldengen [mailto:[EMAIL PROTECTED]]
Sent: 17 May 2001 13:39
To: Fusebox
Subject: RE: RIGID STANDARDISATION IN EXTENDED FUSEBOX


> So in answer to my second question, will the myGlobals.cfm file in the
> parent circuit set up all the site dependent structures such as
> request.security, request.mappings, request.globals etc, and 
> then each child
> circuit has a myGlobals.cfm which will only contain variables 
> relating to
> that particular child circuit?
> 
> Thanks
> 
> Luke

I believe the MyGlobals.cfm in each of your circuits will contain all
of this.  You can insert those definitions in the 
<cfif NOT IsDefined( 'request.Circuits' )> statement.  This way, 
they only get set if they are in the home application, and each circuit
functions on its own, or as a circuit.  

-Erik
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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