I do not come from a programming background. I, like many in the 90s, picked up CF (v. 4) because of its tag-based ease of use. I was pretty damn good with HTML, and said: "cool! tags! I can learn this and not pay someone else to do it for me."
Within the last 12 months or so I've been reading/studying up on OO in CF; so I'm pretty new to the whole OO thing. I've read and studied a ton. I've downloaded various frameworks and have dug through their files trying to get a better understanding of everything. In an effort to make sure that I completely understand what's going on, I am actually writing my own framework from the ground up. Will I someday ditch it and go with one of the many frameworks that are already out there? Only time will tell. But in the meantime, I am doing it for the purpose of educating myself. Now then, to the actual questions (sorry for the lengthy background info)... Question # 1: Am I correctly understanding what a 'controller' is? As I understand it, in an MVC environment, the controller is what handles all the various tasks required prior to rendering the requested page. In the past, I would simply write this code at the top of the file that was requested. Question # 2: Assuming that the answer to Q1 is 'Yes', is it correct/okay/accepted for the controller to be a CFC as opposed to an include or custom tag, and that controller CFC to reference outside scopes, such as 'form', 'url', 'session', and 'cgi'? The 'best practices' article at Benorama.com ( http://www.benorama.com/coldfusion/patterns/part3.htm) clearly shows that the controller is a CFC, and I'm not grasping how a CFC can act as a controller without referencing some or all of those scopes. (For instance, the controller needs to get the user name and password from the submitted login form before it can pass them off to the user object.) My problem is that I live by the rule that my CFC objects are not permitted to access anything outside of themselves, so trying to reason with myself here is causing quite a headache. On one hand I tell myself, "the controller isn't an object per se, so it's okay." On the other hand, I say, "it's a damn CFC! Don't reference anything outside of it!" Thanks in advance for your guidance! 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:265395 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

