I use cfobject to instantiate my components in my Application.cfm file.

<cfobject name="test1obj" component="cfc/test1">
<cfobject name="test2obj" component="cfc/test2">

Can I use test1.cfc to call a method from test2.cfc?

In a typical ".cfm" page I would invoke the component like this,
<cfinvoke component="#test2obj#"... >

However, if I use this same code inside of test1.cfc, I get the error
"Variable test2obj is undefined".

Is there a way I can create the object so that it is available to use in a CFC?

Thanks
Brian 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:306619
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to