I have just began work on a new ColdFusion site for a client. It's not a
large
site, but has the potenial to grow a ton. After reading the FuseBox book, as
well
as Hal Helms excellent article "Extending FuseBox 101" I decieced to give
it a try.

My problem is that I am still somewhat confused on how to pass FuseActions
to a Ciruit
Application and then how to let the Circuit know to handle certain requests,
or to pass the
action back to the HomeApplication or if I even should? If this doesn't make
much sense
remember, I said I confused.

Below is an example of what I'm talking about.

====================================================
Mini Structure

My_Home_Application/
  |
  |__About_Us_Section/
  |
  |__Products_Section/
  |
  |
  index.cfm
  app_globals.cfm
  dsp_homepage.cfm
====================================================


Okay, here is my index.cfm, and lets just
say I want to call the "Products" section of
my website.

<cfswitch expression="#attributes.fuseaction#">
    <cfcase value="products">
        <cfinclude template="products/index.cfm">
    </cfcase>
</cfswitch>

I'm guessing this is correct.

Now the application goes to the products/index.cfm
page, which looks like this.

<cfswitch expression="#attributes.fuseaction#">
    <cfcase value="products">
        <cfinclude template="dsp_products.cfm">
    </cfcase>
</cfswitch>

This is where I'm getting confused. Do the
FuseActions still call the HomeApplication
index.cfm page, or since I'm now inside of
my CiruitApplication do I want to call the
circuit applications index.cfm page to handle
the FuseActions from this level. Or do I want all
FuseActions, no matter where they are called from
to be sent to the HomeApplication index.cfm and
then let them filter down to the correct <cfcase>
statement, no matter what index.cfm page I'm
starting from.

Okay. Sorry this is so long, but I really need
some advice/help with this one. What I guess I'm
really asking is how do people handle this relationship
between CircuitApplications and HomeApplications.

Thanks so much.

Philip B. Isaacs
Web Developer

SiteTRENDS, LLC
One Reservoir Corporate Centre
4 Research Drive
Suite 200
Shelton, CT 06484

Complete Internet Resources
(P) 203.925.9800 x1153
(F) 203.929.7799
(E) [EMAIL PROTECTED]
(W) www.sitetrends.com


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