> Just curious: after looking at a few message boards this
> past week, I
> noticed that a few of them have different .cfm pages for
> different
> functions (e.g., "viewmessage.cfm", "threadview.cfm",
> etc.). However, most
> of them work like yours: there seems to be only 1 main
> page ("index.cfm"),
> and all "functionalities" seem to be achieved via an
> "action" variable
> passed through the url: "action="" "action=""> > "action="" etc.

> Why is this a preferred method? Does it really use only 1
> .cfm page (an
> action page)? If it does, doesn't it slow things down to
> have only 1 page
> parsed all the time for so many different functions
> (doesn't it overload
> that page)?

It's generally considered easier to deal with frameworks by funneling
all the requests through a single template and since the index.cfm has
the added advantage of being a default template in the webserver in
most cases, that's usually what's used. Although it's possible that an
application could be written as a single large template, that's not
usually the case. Instead the framework provides a structure for
organizing, managing and reusing many templates to perform different
tasks. Also a typical framework-driven application will usually
include many many more templates than an application which uses
separate base templates (viewmessage.cfm,threadview.cfm,etc.). For
those who use frameworks, yes frameworks are a preferred method -- the
common claims are that a framework provides more/better structure and
that as a result of the framework being public the developer community
can share a wealth of common knowledge about applications built with
them, making it faster and easier to build applications, particularly
larger and more complex applications.

Some popular frameworks:

FuseBox 3 & 4 http://www.fusebox.org
Mach-II http://www.mach-ii.com
onTap http://www.fusiontap.com

s. isaac dealey     954.927.5117
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.sys-con.com/story/?storyid=44477&DE=1
http://www.sys-con.com/story/?storyid=45569&DE=1
http://www.fusiontap.com
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to