|
Hi All!
I have been developing CFCs for a little while, avoiding many of the pitfalls because my use of them have been limited to building varied and disconnected functions.
However now that the Mach ii framework is out, I have a few question as to what is considered best practice when it comes to passing data from one object to another. Specifically now that an object (it’s properties and method can exist in a shared scope)
For example if object b needs a property of session.objectA.
Should the call be <cfset objectb.somefunction(this.aProperty) or should the call simply be <cfset objectb.somefunction() assuming that the function in objectb will just grab the session scoped property (as in session.objecta.aProperty)
This may be simple, but I am starting to think that my call logic is overly complicated as I mixed between the two.
Your help is appreciated
Sean Scott |
