Thanks Brian, I was going to progress to FuseQ next, and the 
dependancies you mention I am aware of, I have used cfmodule before, it 
works well, but I just thought maybe I was missing something really 
basic that was causing the root switch not to see down into the view 
circuit that would call the form to add a new user. I will keep plugging 
away.


Brian Kotek wrote:
> Not sure about why you aren't seeing the form, Andres, but there is a 
> bigger concern here.  In your example, you are CFINCLUDING a fuse from 
> ANOTHER CIRCUIT into your controller's switch.  This is not a very good 
> idea, as it introduces all sorts of dependencies between your circuits.  
> 
> Circuits are meant to be isolated "black boxes" which are 
> self-contained.  In this case, instead of doing a CFINCLUDE, what I 
> think you might want to look at is CFMODULE:
> 
> <cfmodule template="#fusebox.rootpath##self#" 
> fuseaction="vAdmin.showUserForm">
> 
> By recursively calling the application and calling another fuseaction, 
> you maintain the separation between circuits because there is no direct 
> dependency.
> 
> And beyond using CFMODULE, you can look at the new FuseQ, which allows 
> you to call multiple fuseactions from within the same cfcase.  There are 
> 
> also some good explanations by Hal on using MVC there.  
> www.techspedition.com.
> 
> Hope that helps,
> 
> Brian
> 
> Andres Malditasea wrote:
> > Hi, 
> > 
> > I am trying to set up a very simple example app that follows the MVC 
> > pattern, but I am running into a problem, something probably really 
> > basic. I have a circuits file that looks like this:
> > 
> > <cfset fusebox.Circuits.MVC="MVC">
> > <cfset fusebox.Circuits.Admin="MVC/Admin">
> > <cfset fusebox.Circuits.mAdmin="MVC/Admin/Model">
> > <cfset fusebox.Circuits.cAdmin="MVC/Admin/Controller">
> > <cfset fusebox.Circuits.vAdmin="MVC/Admin/View">
> > 
> > And my first page dsp_AdminHome.cfm has a link:
> > 
> > Click <a href="index.cfm?cAdmin.AddUser">here</a> to add a new user
> > 
> > The controller circuit has an AddUser fuseaction,
> > 
> > <cfcase value="main,AddUser">
> >     <cfset attributes.XFA.cAdminAddUser = "mAdmin.AddUser">
> >     <cfinclude template="./View/dsp_AdminAddUserForm.cfm">
> > </cfcase>
> > 
> > but I am not seeing the add user form, it just keeps returning the same 
> > home admin page with the link above. I have placed the following files 
> > in all three circuits (model, controller and view):
> > 
> > index.cfm
> > fbx_switch.cfm
> > fbx_settings.cfm
> > fbx_fusebox30_CF50.cfm (I am using CF5.0)
> > 
> > What am I missing here??
> > 
> > 
> > 
> 
> 
> 
> ---
> 
> 
> 

==^================================================================
This email was sent to: [email protected]

EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9
Or send an email to: [EMAIL PROTECTED]

T O P I C A -- Register now to manage your mail!
http://www.topica.com/partner/tag02/register
==^================================================================

Reply via email to