: +613 8676 4223
Mobile: 0404 998 273
*From:* cfaussie@googlegroups.com [mailto:
[EMAIL PROTECTED]
*On
Behalf Of *Taco Fleur
*Sent:* Wednesday, 6 June 2007 3:52 PM
*To:* cfaussie@googlegroups.com
*Subject:* [cfaussie] Re: Get root of the application
*Subject:* [cfaussie] Re: Get root of the application
I give up
On 6/6/07, *David Harris* [EMAIL PROTECTED] wrote:
I just created a folder struct of [root]/one/two/bob.cfm
and put the code:
cfoutput#getDirectoryFromPath(expandPath(/))#/cfoutput
Of Taco Fleur
Sent: Wednesday, 6 June 2007 3:52 PM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Re: Get root of the application
I give up
On 6/6/07, David Harris [EMAIL PROTECTED] wrote:
I just created a folder struct of [root]/one/two/bob.cfm
and put the code:
cfoutput
Aegeon Pty. Ltd.www.aegeon.com.au
Phone: +613 8676 4223
Mobile: 0404 998 273
From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Taco Fleur
Sent: Wednesday, 6 June 2007 3:52 PM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Re: Get root of the application
I give up
Developer
Aegeon Pty. Ltd.www.aegeon.com.au
Phone: +613 8676 4223
Mobile: 0404 998 273
From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf
Of Taco Fleur
Sent: Wednesday, 6 June 2007 3:52 PM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Re: Get root of the application
I give
:* Wednesday, 6 June 2007 3:52 PM
*To:* cfaussie@googlegroups.com
*Subject:* [cfaussie] Re: Get root of the application
I give up
On 6/6/07, *David Harris* [EMAIL PROTECTED] wrote:
I just created a folder struct of [root]/one/two/bob.cfm
and put the code:
cfoutput#getDirectoryFromPath
.
www.aegeon.com.au
Phone: +613 8676 4223
Mobile: 0404 998 273
*From:* cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Taco Fleur
*Sent:* Wednesday, 6 June 2007 3:52 PM
*To:* cfaussie@googlegroups.com
*Subject:* [cfaussie] Re: Get root of the application
I give up
On 6
]
*On
Behalf Of *Taco Fleur
*Sent:* Wednesday, 6 June 2007 3:52 PM
*To:* cfaussie@googlegroups.com
*Subject:* [cfaussie] Re: Get root of the application
I give up
On 6/6/07, *David Harris* [EMAIL PROTECTED] wrote:
I just created a folder struct of [root]/one/two/bob.cfm
PM
*To:* cfaussie@googlegroups.com
*Subject:* [cfaussie] Re: Get root of the application
I give up
On 6/6/07, *David Harris* [EMAIL PROTECTED] wrote:
I just created a folder struct of [root]/one/two/bob.cfm
and put the code:
cfoutput#getDirectoryFromPath
This not work for you, sure works for me?
getDirectoryFromPath(getCurrentTemplatePath())
Andrew Scott
Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613 8676 4223
Mobile: 0404 998 273
From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of
Does that work for you if you put it in an application.cfc that extends the
root application.cfc, and access a page in that sub directory first, also
make sure the app is not initialised yet.
Let me know..
On 6/6/07, Andrew Scott [EMAIL PROTECTED] wrote:
This not work for you, sure works
] On Behalf
Of Taco Fleur
Sent: Wednesday, 6 June 2007 12:45 PM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Re: Get root of the application
Does that work for you if you put it in an application.cfc that extends the
root application.cfc, and access a page in that sub directory first, also
make
how bout this?:
cfoutput#getDirectoryFromPath(expandPath(/))#/cfoutput
On Jun 6, 2:45 pm, Taco Fleur [EMAIL PROTECTED] wrote:
Does that work for you if you put it in an application.cfc that extends the
root application.cfc, and access a page in that sub directory first, also
make sure the
If you put this in the main application.cfc file and then make sure the app
is not initialized, call a page within the sub directory (i.e. the one where
the application.cfc is that extends the main one) then you will get the path
of the sub directory and not the main root.
I've now created a .cfm
I just created a folder struct of [root]/one/two/bob.cfm
and put the code:
cfoutput#getDirectoryFromPath(expandPath(/))#/cfoutput
in bob.cfm, and it gave me the correct web root...
I also put a onRequestStart function in my Application.cfc:
cffunction name=onRequestStart output=true
p
here:
I give up
On 6/6/07, David Harris [EMAIL PROTECTED] wrote:
I just created a folder struct of [root]/one/two/bob.cfm
and put the code:
cfoutput#getDirectoryFromPath(expandPath(/))#/cfoutput
in bob.cfm, and it gave me the correct web root...
I also put a onRequestStart function in my
in fact, this is the quickest:
cfoutput#expandPath(/)#/cfoutput
as it only returns the dir anyway...
On Jun 6, 5:46 pm, David Harris [EMAIL PROTECTED] wrote:
I just created a folder struct of [root]/one/two/bob.cfm
and put the code:
cfoutput#getDirectoryFromPath(expandPath(/))#/cfoutput
in
17 matches
Mail list logo