Try something like...

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

<CFSET application.istheresunshine = hellocfc.goodmornincfc()>

HTH




-----Original Message-----
From: Andre Turrettini [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 16, 2002 0:48
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
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Reply via email to