For your "webapp", you could consider:
M = model = Database tier and CFCs (I am not sure what replacement you could
use in CF5...Custom Tags? CFX?)
V = View = CFML pages with no logic in them whatsoever, everything in tags
and CFCs
C = Control = The control should really just be the bit of your app that
decided which CFC to call, and
which CFML to display. Control should be something that
you
change very little on a day to day basis, it mediates
between
M and V.
In general, most CF developers probably still put too much code into CFCs
than they should but that generally and probably an issue with CF itself;
and something you cant or wont really get around at the moment.
The CF engine itself probably does much of the "controller" job I would say,
but i'm not sure how cleanly it lets you implement MVC, in its purest form.
-----Original Message-----
From: Paul Johnston [mailto:[EMAIL PROTECTED]
Sent: 05 September 2003 09:48
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] MVC issues
> Going on this MVC stuff....where are some good resources? I
> know there is all the Fusebox stuff (dont get Simon started ;-)...
You can make an MVC fusebox app (although it's not particularly good to do
that imho because fusebox definitely IS procedural) but I wouldn't put
fusebox in an MVC category.
Best place to look for MVC and CFMX is at mach-ii (look at the examples).
As far as MVC in general, there are books by the "Gang of Four" and others,
and also many Java resources on the internet.
My original question was (in essence):
How does MVC fit into the web application idea best?
In other words, if I was writing a pure MVC app in CF5 (not CFMX - legacy
apps) then how would I go about it... Reference implementation?
Paul
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]