Mappings allow you to access a folder regardless of where it is physically
on the server.  We are in the process of creating a common repository with
all of our cfc, java, custom tags, etc.  The common repository is located
outside of the web root (good idea for security reasons) and we have a
mapping to it so we can access it. So what this means is that if I have to
access a file in c:\inetpub\cfcfolder\ from a file in c:\inetpub\wwwroot,
all I have to do is reference it like /cfcfolder/this.cfc to call the cfc.
This is especially useful in the extends statement in cfc's as you cannot
use "../" to go up a directory level. In the cfc example...as long as you
don't have to refer to a cfc in a higher level directory in an extends
statement, Ben Nadel has a great method of doing so without mappings.

Eric 

-----Original Message-----
From: Richard Cooper [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 21 November 2006 09:18
To: CF-Talk
Subject: CFC Mappings

Hi,

I'm having a moment and can't quite suss out the logical path works under
Server Settings > Mappings in cf admin.

For example if I have a folder:
W:\inetpub\wwwroot\cfc

What the purpose of the logical path and can it be anything...
/cfcfolder for example?

Lastly, is a restart need after setting up a new path?
Thanks,

R



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

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