Jon,

Thanks for the FAQU tip; it sounds like I definitely need to read the
article(s).  I keep meaning to subscribe, but I keep forgetting to.
Hopefully I'll remember to do so when the next check comes in (before it's
all spent!)  :-)

You've definitely helped clear the muck a bit.  I'm pretty sure that my
thinking is basically inline with your pointers and statements, just
possibly worded a bit differently.

In the "old days", when the user submits a login form, I would simply have
the code written at the top of the action file that would check their creds
and grant/deny access accordingly.  Now that I'm moving to an OO-based
mindset (I realize that CF is not "true" OO), I want that code removed from
the view.

I have the userObject, but I don't allow it to access outside scopes.
Whatever it requires in the form of "outside" data must be passed in.
That's where, in my mind, the controller comes into play.  It, to me, as the
intermediary between the view and the model, has basically become the
replacement (for a lack of a better word) for the code that used to be at
the top of the view file.  So now, the controller "intercepts" the page
request, grabs the username/password from the form scope, and sends it off
to the userObject to be verified/validated.

I'm trying not to get too verbose here, so I'm not getting into the whole
DAO/Gateway portion of it, but the controller would also handle any required
interaction with those as well before sending the request back to the view.

Anyways, I'll continue to plug away and learn all I can so that one day when
I grow up I can maybe be a real programmer!  LOL


Matt


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265403
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to