I have not ventured into this too far, so I may be missing something
fundamental here, but I took a simple XFB app on
http://www.erikv.com/downloads.html
and started to monkey around with it (I probably broke something right
away), BUT, my question is this.  All I did was change the code in the "sub"
circuit to reflect the name of my folder structure and now all I get is:

I could not resolve the circuit application prefix sent to me. 

here is what I have so far, can anyone point me in the right direction to
debug this?

<!---Circuits--->
<cfset request.Circuits = StructNew()>
<cfset request.Circuits.home = "Xfb">
<cfset request.Circuits.a = "Xfb.guest">
<cfset request.Circuits.b = "Xfb.members">
<cfset request.Circuits.c = "Xfb.admin">

<!---admin index--->
<cfinclude template="myGlobals.cfm">

<!--- Translate the fuseaction sent to me into a fully qualified 
fuseaction --->
<cf_Nesting>

<!--- Peel off the first layer and determine whether to delegate 
the fuseaction. --->

<cfif ListLen( attributes.fuseaction, '.' ) GT 1>
   <cfinclude template="#ListFirst( attributes.fuseaction, '.'
)#/index.cfm">
<cfelse>

<!--- I'm going to get one (and only one) fuseaction at a time. Fuseactions 
correspond to methods or messages in OO languages. --->

<cf_bodycontent>
   <cfswitch expression = "#attributes.fuseaction#">

                <cfcase value="main">
                        <cfset attributes.XFA.home = "Xfb.login">
                        <cfset attributes.XFA.b = "guests.cover">
                        <cfinclude template="dsp_cover.cfm">
                </cfcase>
                
                <cfcase value="Xfb.login">
                        <cflocation
url="#attributes.urlstring##request.Circuits.home##request.self#"
addtoken="No">
                </cfcase>
                      
                <cfdefaultcase>
                        <cfinclude template="dsp_noFuseError.cfm">
        </cfdefaultcase>

   </cfswitch>
</cf_bodycontent>

<!---part of admin myglobals--->
<!--- In case no fuseaction was given, I'll set up one to use by default.
--->

<cfparam name="self" default="index.cfm">
<cfparam name="request.self" default="index.cfm">

<!--- Set up default protocols and server --->
<cfparam name="attributes.protocol" default="http://";>
<cfparam name="attributes.server" default="lanham-amidd/">
<cfparam name="attributes.urlstring"
default="#attributes.protocol##attributes.server#">


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