Hi lee,

Have worked on your tags addcircuits, allscopes...etc from bjork.net.
It works very fine and simple to use.
But there is a problem when i have many circuits. Its takes time to
load the circuits at each circuit level via the <CF_ADDCIRCUITS>.

I think that the application circuits is inversely proportional to
application
performance.

So,it would not be more simple to define all the circuits in circuits.cfm
rather
than recursively define it?

I tried an example and found that works better. Here is the code:

circuits.cfm in root directory of app:
<CFQUERY NAME="cir" DATASOURCE="datasour">
SELECT      CIR_NAME, CIR_PATH
FROM         CIRCUITS
</CFQUERY>

***my circuits is from a database for my context only****
Where CIR_NAME and CIR_PATH are circuit name and path respectively.


<CFPARAM NAME="request.Circuits" DEFAULT="#StructNew()#">
<cfset request.Circuits.sim = "SimpleContactManagerFB">
<cfoutput query="cir">

        <cfset "request.Circuits.#CIR_NAME#" = "SimpleContactManagerFB.#CIR_PATH#">

</cfoutput>

The other circuits.cfm in fuses are left as it were with the
<CF_ADDCIRCUITS> for
testing the circuit stand alone.


What do u think of?

Josian
CF Developper
Ingecom Mauritius



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