When I instantiate an object through the variables scope either in the
psuedo or init constructor, it can't find any methods when called
through that variable in any methods (gives as cferror). What I'm
trying to do is be able to use the object methods within any of the
current objects in the cfc. I'm sure there's other better ways to do
this and if you got a suggestion on how, that'll be great.
Thanks!
Looks something like this:
<cfcomponent>
<cfscript>
variables.getclass = createobject("component", "com.path.class").init
();
</cfscript>
<cffunction name="init" ...>
<cfreturn this />
</cffunction>
<cffunction name = "doThis">
<cfscript>
var fantango = "";
fantango = variables.getclass.getYoYo();
</cfscript>
</cffunction>
</cfcomponent>
--
You received this message because you are subscribed to the Google Groups
"CFCDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cfcdev?hl=en.