How is the value being used in the said object? To remain OO, the value should be supplied through a method, if it is to be set when the object is initiated, then the value should be supplied as an argument to the constructor.
To make sure the argument is a post variable, you simply call the appropriate object method and pass 'form.myVar' to it. Referencing the post scope inside an object is, as you pointed out, opposed to OO priniciples, so do it outside the object and then behave accordingly. Dom On 15/10/2007, Jochem van Dieten <[EMAIL PROTECTED]> wrote: > > Matt Quackenbush wrote: > > I should have clarified my question. I completely realize that the > 'form' > > and 'url' scopes (structs) still exist inside the various frameworks, so > I > > know that I can directly reference them. However, in an "OO world", > you're > > technically not supposed to reference outside scopes. > > That is not specific to an "OO world", you shouldn't do that in > procedural code either. > > > > Is it okay to directly reference the form scope in my OO-like > controllers? > > Or is there another way for me to guarantee that the variable is a post > vs. > > get? > > Since the answer to both questions is "No" I will add a third question: > How important is it *really* to know the variable came from a post? > > Jochem > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291080 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4