Id check the following:
That your referring to the CFC in the same way you are defining them. (since
you say it works when defining with teh functions, I think this is most likely)
The method-access on the other CFCs.
That the init function of external CFCs are returning "this".
You could also instantiate them into the application scope, as long as they are
thread-safe, and then refer to them via the application scope.
Hope this helps!
>Gah, sorry. The sample is wrong. The psuedo constructor would look
>like this and in the cffunction would be called by the variables scope.
>variables.errorMsg.addErrorMsg()
>
>Sorry. was copy/pasting.
>
><cfcomponent displayname="feeds" output="false" ...>
> <cfscript>
> variables.errorMsg = createObject("component",
>"com.util.errorMessages").init();
> variables.iManager = createObject("component",
>"com.util.imageManager").init();
> variables.instGateway = createObject("component",
>"FeedsGateway").init(application.global);
> </cfscript>
>
>>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328706
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4