Just create the mapping on both your local and live sites. Use
hardcoded fully qualified paths if you can... try to avoid dynamic
path names when refering to the names of CFCs. It makes things easier
to understand when you look at it later, and if you have to change the
names at some point the "search and replace" should be pretty simple.
On Mon, 14 Mar 2005 16:00:44 -0500, Jeff Small <[EMAIL PROTECTED]> wrote:
> > paths to cfcs have to be absolute wite createObject() A pita for site
> > portability, eh? There are ways around this. You could create a CF
> > mapping called com to C:\Inetpub\wwwroot\com\. Then place your CFCs
> > in there in teh 'Java way'
> > C:\Inetpub\wwwroot\com\domainname\app1\mycfc.cfc
> >
> > Then all your CFC calls would be the same anywhere as
> > com.domainname.app1.mycfc
> >
> > I sometimes set an application scoped var application.rootdir and use
> > something like
> > <cfset toolsobj =
> > CreateObject("Component","#Replace(application.config.getAppRoot(),"/",".")#.pathtocfcs.inmy.app")
> > />
> >
> > Doug
>
> Okay...well...that kinda reeks.
>
> I'm still a little confused, but I obviously have more to read, so rather
> than complain here, I'll quietly go read what I need to get it to work.
>
> Jeff,
> confused
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198703
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54