On Thursday, Jul 17, 2003, at 09:36 US/Pacific, Mosh Teitelbaum wrote:
> I've been pondering the benefits and downsides of this approach for a 
> while
> now.  Since you bring it up, I was wondering what everyone else thought
> about all requests having to come in through an application spine?  
> That is,
> what benefits exist and/or are perceived to exist from structuring all 
> of
> your HREFs like "index.cfm?fuseaction=foo.bar" or 
> "index.cfm?displayPage=5"
> instead of "/foo/bar.cfm" and "page5.cfm" respectively?

Well, it's an approach I've gradually drifted into even without 
Fusebox. MVC operates that way, for example, with all requests going 
through the controller. (yeah, sometimes there are multiple controllers 
in an application but the point is that usually one controller handles 
a lot of different requests)

As a simple example of this controller approach, look at this very 
simple cat club site:

http://www.corfield.org/pccf/

It (mostly) uses a single index.php file (whose name is hidden) and 
page=xxx URL attributes to determine what to do. That wasn't inspired 
by Fusebox, it just happened to be a convenient way to wrap very simple 
HTML pages in a common layout and common navigation. It's an 
abstraction that (a) hides the actual file structure (b) allows me to 
control layout in a single file (c) provides a central controller for 
any logic in the site.

Even my main site was mostly built around a number of 'controller'-like 
pages long before I'd even read about Fusebox. See this page for 
details about how the site used to be:

http://www.corfield.org/?fuseaction=fusebox.rewrite

Sean A Corfield -- http://www.corfield.org/blog/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to