Are the 2 code bases running in separate instances of CF? I've had the same problem before (different directory structures in Dev and Live, forced upon me by limitations of the network architecture in place).
One thing I've done before is, I'll make a CF mapping in CFAdmin and call it something like "theCFCdir". Assuming all your CFCs live in the same folder (or subfolders thereof), you could do: CreateObject( "component", "theCFCdir/foo.cfc") And that should work, yes? I know I've done it before with some success anyway. Hth Nolan Erck Web Developer/Programmer Schools Financial Credit Union (916) 569-5409 Office (916) 569-2024 Fax www.schools.org -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of dickbob Sent: Thursday, March 16, 2006 2:43 AM To: [email protected] Subject: Re: [CFCDev] How to use returntype correctly Hi Tom, Thanks for your comments... >> How do I reconcile the fact that the pathname must be a constant value with >> the path being different between the dev and live environments? > > You mean you have objects like > com.wibble.fo.bar > on live but something different in development ? Why ? Not all of us have the luxury of a different dev and live server so I have... com.dev.wibble.fo.bar ...and... com.live.wibble.fo.bar ...for the two different code streams. Dickbob ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected] The information contained in this e-mail is confidential and may contain privileged information exempt from disclosure under applicable law. The information is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, employee, or agent responsible to deliver it to the intended recipient, you are hereby notified that any use, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this e-mail in error, please delete the message from your computer and immediately notify the sender by telephone (you may call collect) at 916-569-5400 or by e-mail to [EMAIL PROTECTED] Thank you. ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
