You need to specify the name of the CFC. Ie, 

<cfobject name="hellocfc" component="_services.hellocfc.WHAT IS THE NAME
OF YOUR CFC, don't include ".cfc" here">

So, a real example, assuming the cfc is called helloTest.cfc:

<cfobject name="helloCFC" component="_services.hellocfc.helloTest">

P.S. There is a CFC listserv hosted by CFCZone.org.

=======================================================================
Raymond Camden, ColdFusion Jedi Master for Hire

Email    : [EMAIL PROTECTED]
WWW      : www.camdenfamily.com/morpheus
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Andre Turrettini [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, October 15, 2002 7:48 PM
> To: CF-Community
> Subject: Stupid cfc help?
> 
> 
> Maybe someone can help me with my boneheadedness. I'm just 
> missing it in the
> documentation ro something.
> 
> I've got in the webroot a folder called _services where I 
> would like to put
> my cfcs.
> I've got a cfc in that folder called hellocfc.
> My page is 3 folders down from the webroot.  Lets call it
> /where/what/when/page.cfm.
> 
> So, I'm trying to call this cfc like so.
> 
>       <cfobject 
>           name="hellocfc" 
>           component="_services.hellocfc">
>       <cfinvoke 
>                           component="#hellocfc#" 
>                           method="goodmornincfc" 
>                           
> returnVariable="application.istheresunshine">
> 
> But it says it cant find it.  So, how do you reference the 
> location of the
> cfc in the cfobject tag?
> 
> Tks. DRE
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=5
Subscription: 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_community
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Reply via email to