That's a nasty problem, because the Application.cfm file might not be in the
same directory as the base template, because CF looks up the directory tree
until it finds one. I think you'll want to start with cgi.script_name and
getBaseTemplatePath() in your base template. The compute the part of
, February 21, 2003 1:35 PM
To: CF-Talk
Subject: RE: easy path question
Have you looked at mappings in the administrator?
Here's what I do ...
Setting a mapping in the administrator
Then set this in the Application.cfm
request.cfmapping=/mymapping/
Then in my code:
cfinclude template
(NETPDTC)
(850)452-1001 ext. 1245
[EMAIL PROTECTED]
-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 21, 2003 1:45 PM
To: CF-Talk
Subject: RE: easy path question
That's a nasty problem, because the Application.cfm file might not be in the
same
however you
like. :)
James Ang
Programmer/Product Engineer
MedSeek, Inc.
[EMAIL PROTECTED]
-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 21, 2003 11:45 AM
To: CF-Talk
Subject: RE: easy path question
That's a nasty
: Friday, February 21, 2003 2:09 PM
To: CF-Talk
Subject: RE: easy path question
Fun question. I have been mulching on this for a while now, and here is
my *current* solution:
In Application.cfm:
cfscript
sttCFG = StructNew();
sttCFG.strAppPhysDir = GetDirectoryFromPath(GetCurrentTemplatePath
) [SMTP:[EMAIL PROTECTED]
Sent: Friday, February 21, 2003 11:57 AM
To: CF-Talk
Subject: RE: easy path question
Unfortunately, I'm helping out with a site that another developer at a
remote site wrote. We are bouncing files back and forth. I have some
stuff
dependent on paths
something like this?
GetDirectoryFromPath(GetCurrentTemplatePath())
but it will return the path of the current template only you can use it in
something like the app_globals.cfm to set the path dynamically
i code from home...it goes to a demo server...then it hits a production
server so i just
7 matches
Mail list logo