My particular way around this is to set a CFC path variable in the application 
scope.  So I call CFC's like this:


<cfset application.CFCpath = "cfc" />
Or 
<cfset application.CFCpath = "synergydale.cfc" />

<cfobject component="#application.cfcPath#.nascar" name="nascarObj">

Yeah it's extra typing, but is a lot easier to maintain.  If that option is 
palatable to you. 


Terrence Ryan
Senior Systems Programmer
Wharton Computing and Information Technology       
E-mail:         [EMAIL PROTECTED]


-----Original Message-----
From: Bruce Sorge [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 09, 2007 1:39 PM
To: CF-Talk
Subject: CFC Question

I have a site on my laptop under Nascar. The CFC directory is Nascar.cfc. On
the live server though the root directory is SynergyDale. So of course my
CFC's cannot be found. Do I need to change the directory name on my laptop
to SynergyDale or is there a way for me to keep my directory the same name
and still reference the CFC. I am going to guess that I have to change my
local directory since the CFC is referenced as NASCAR.CFC.Queries?

-- 
Bruce Sorge

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266074
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