Hi there,
exactly where do you put your <cf_formurl2attributes> ?
don't really understand this custom tag well and how it can effectively use
on fusebox, can help me to see it more clearly? thanks!
roger
----- Original Message -----
From: Paul Johnston <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 18, 2000 11:13 PM
Subject: RE: Ok, What is Fusebox?
> Will,
>
> Very simply, fusebox is a way or a methodology of creating an application
> using "actions" called a "fuseaction". You use the attributes scope using
> the <cf_formurl2attributes> tag (which is part of fusebox). What this tag
> does is to change all "form" and "url" scope variables into attribute
scope.
> This means that a fusebox can be used as a module or as a custom tag.
>
> In fusebox ALL processing is done through the index.cfm page. This is
where
> you put all of the fuseactions you want. You choose which fuseaction you
> want using a <cfswitch>. An example of a simple index.cfm page is here:
>
> -----------------
> Index.cfm
> -----------------
>
> <cfswitch expression="#attributes.fuseaction#">
> <cfcase value="home">
> <cfinclude template="dsp_home.cfm">
> </cfcase>
> <cfcase value="search">
> <cfinclude template="dsp_search.cfm">
> </cfcase>
> <cfcase value="search_results">
> <cfinclude template="qry_getresults.cfm">
> <cfinclude template="dsp_search_results.cfm">
> </cfcase>
> <cfcase value="contact_me">
> <cfinclude template="dsp_contacts.cfm">
> </cfcase>
> <cfcase value="email">
> <cfinclude template="act_email.cfm">
> <cfinclude template="dsp_thankyou.cfm">
> </cfcase>
> <cfdefaultcase>
> <cfinclude template="dsp_error.cfm">
> </cfdefaultcase>
> </cfswitch>
>
> -----------------
> End of Index.cfm
> -----------------
>
> The advantage of this is that you can put headers and footers around this
> code. You can also put <cftry> and <cfcatch type="whatever"> around this
> <cfswitch> and this will put error checking in all your code throughout
your
> application.
>
> The effect of using this method is to modularise the whole system, making
> each section into small "bite-size" chunks of code (you hope) thus making
> error checking a lot easier. Debugging being one of the worst parts of
> programming, I think you may see why this is useful.
>
> It is also very efficient use of coding. I have been using it for several
> months and my ability to build robust and fast applications has increased
> significantly. Another aspect of fusebox is that it makes you think about
> the application and what actions you need before you build it, thus
forcing
> you to plan the application better than previous methodologies did.
>
> Anyway, I'm going to step down from my soapbox (if you'll excuse the pun)
> and let you read the rest at http://www.fusebox.org
>
> Paul
>
> PS One of the best things about fusebox is that it is not a rigid system.
> You can take the bits you want and use them, and nobody is going to mind
at
> all. There is also a fusebox mailing list, on
http://www.houseoffusion.com
> and if you want more help, go there.
>
> > -----Original Message-----
> > From: W Luke [mailto:[EMAIL PROTECTED]]
> > Sent: 18 September 2000 15:48
> > To: [EMAIL PROTECTED]
> > Subject: Re: Ok, What is Fusebox?
> >
> >
> > ----- Original Message -----
> > From: "Stephen Moretti" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, September 18, 2000 2:39 PM
> > Subject: RE: Ok, What is Fusebox?
> >
> >
> > > Hey Will,
> > >
> > > David is exactly right, you need to start at the fusebox
> > website, but I'm
> > > gonna *try* and give you a little insight.....
> > >
> > > >
> > > > I'm still unsure of exactly what it stands for. Could you give me
an
> > > > example of a fusebox `concept`?
> > > >
> > >
> > > OK....
> > > Not meaning to blow my own trumpet, but did you have a look at the
> > > powerpoint presentation that I gave a link to in a previous
> > email?? That
> > > should help you understand where to start...
> >
> > It's sitting on my desktop - I've got to <shock!> re-install Powerpoint
> > though, as I've never had to use it.
> >
> > > Well - all of it really.....
> > >
> > > Each of the queries goes into a file that is prepended with
> > qry_ and then
> > a
> > > name that makes sense, it will also help you to get rid of the
> > duplicated
> > > queries and help you reuse the code you've already written. It'll
also
> > help
> > > you later when you get into advanced CF where you want to cache
some/all
> > of
> > > those queries to speed processing of the pages.
> >
> > Right, and fusebox.org can tell me how to do this then?
> >
> > >
> > > You'd probably have a circuit that controls the member section and one
> > that
> > > controls the admin section both of which are controlled by your main
> > > index.cfm. Strictly speaking this is an extreme simplification, as
you
> > > probably want to break up your application further, say for instance,
a
> > > login circuit that handles users logins whether they be normal or
admin
> > > users; A circuit for users to register and manage their details on
your
> > site
> > > etc. etc.
> > >
> > > Anyway, I'm not sure that that really helped, but I hope it did...
> >
> > Well no it has - I can see the logic, but would like to see some example
> > code and "structure" somehow.
> >
> > Cheers,
> >
> > Will
> >
> > ------------------------------------------------------------------
> > ------------
> > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> > To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
>
>
> --------------------------------------------------------------------------
----
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.