|
Maybe
the index.cfm is the controller and the event handlers and/or circuits and fuse
actions should be seen as a seperate "model facade". That just doesn't seem
quite right as (to take the MG example which is more likely to be OO and have an
underlying model - FB also supports procedural fuse actions) the event handlers
know about the view to display which seems to put them squarely in the
controller camp . . .
One
associated issue. Can anyone think of a use case for an event handler that
supports rules based switching between views? I'm not talking about
personalization or skinning, but rather about choosing a different view based
upon request specific data. As an example, I used to have code that was "if form
valid, display list with message to say item was added, else redisplay populated
add form with error messages".
I only
finally realized the error of my ways when I read up on Ruby on Rails and why it
uses redirects (so that if you refresh the list view you don't end up adding
another item - a problem clients had occasionally reported with my old cms). (I
know OTHER people knew this a long time ago - I'm just a slow learner!!) I have
also seen that there seems to be a reasonable consensus that
excluding personalization and skinning, a given URL should consistently
describe what you see, so if a person needs to be authenticated before they can
view sensitive_info.html, instead of just swapping out the sensitive_info view
for the login_register view, you should forward them to
login.html.
Given
that, has anyone come across a use case where one event should conditionally
display fundamentally different views or is it just inherently a bad idea
whose time has long since past (if it ever came)?!
Best
Wishes,
Peter -----Original Message-----
From: Peter Bell [mailto:[EMAIL PROTECTED] Sent: Saturday, June 10, 2006 6:47 PM To: '[email protected]' Subject: RE: [CFCDev] Do I Really Need A Controller? Hi
All,
Nando,
got me thinking about wording here. If you look at model glue, there is an
index.cfm that receives the requests and then there are the event handlers
defined in XML. With Fusebox there is again the index.cfm and then there are the
the circuits and their associated fuse actions. In both cases there is a
file that handles all of the stuff you need to handle for an HTML
request/response and another set of files (whether code or XML) that
describe the orchestration required to interact with the model and the view(s)
to return.
It
seems to me that both the index.cfm and the set of XML files or
scripts are undertaking the controller function. I was wondering if anyone
had a good word to describe what the index.cfm is doing vs. what the
orchestration elements are doing?
Any
ideas much appreciated!
Best
Wishes,
Peter ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected] |
Title: Message
- Re: [CFCDev] Do I Really Need A Co... Nando
- RE: [CFCDev] Do I Really Need A Co... Peter Bell
- Re: [CFCDev] Do I Really Need A Co... Nando
- RE: [CFCDev] Do I Really Need A Co... Peter Bell
- RE: [CFCDev] Do I Really Need A Co... Peter Bell
- RE: [CFCDev] Do I Really Need A Co... Peter Bell
- Re: [CFCDev] Do I Really Need A Co... Joe Rinehart
- RE: [CFCDev] Do I Really Need A Co... Peter Bell
- Re: [CFCDev] Do I Really Need A Controller? Cody Caughlan
- RE: [CFCDev] Do I Really Need A Controller? Peter Bell
- FW: [CFCDev] Do I Really Need A Controller? Peter Bell

