In a shared hosting environment this is the approach I use. It allows me to
move the site to any server and just add a single mapping and not worry
about any other paths.

For the site:
http://www.somesite.com

webroot: d:\sites\somesite.com

I create a directory where I place all of my components, custom tags and
include and create a mapping to that direcotry

components & tags directory: d:\sites\somesite.com\somesite\

only need a single mapping of: /somesite -> d:\sites\somesite.com\somesite\

components directory:  d:\sites\somesite.com\somesite\components
custom tags directory: d:\sites\somesite.com\somesite\customtags
included directory:    d:\sites\somesite.com\somesite\includes


Then in my component invocation code I use:
<cfset cfcInstance =
createObject("component","somesite.components.componentName")>

In my custom tags I use:
<cfmodule template="/somesite/customtags/tagname.cfm">

In my includes I use:
<cfinclude template="/somesite/includes/filename.cfm">


Brandon Purcell
http://www.bpurcell.org




-----Original Message-----
From: Massimo, Tiziana e Federica [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 3:30 PM
To: [EMAIL PROTECTED]
Subject: Re: [CFCDev] mapping question


> > I firmly believe we need a <cfmodule> equivalent for CFCs
> 
> Well, it is possible to use mappings w/ CFC paths, but I assume you are
> talking about the ability to use a path to specify the location of the
> CFC? That _would_ make sense. :)
> 
Yes, I think it would make a lot of sense :-)

Massimo


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at
www.mail-archive.com/[EMAIL PROTECTED]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to