How much is the FAQU?
"This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions." Visit our website at http://www.reedexpo.com -----Original Message----- From: Matt Quackenbush To: CF-Talk Sent: Sun Dec 31 00:23:46 2006 Subject: Re: CF and OOP - Controller 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:265412 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4