[cfaussie] Re: Get root of the application

2007-06-10 Thread David Harris
: +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

[cfaussie] Re: Get root of the application

2007-06-08 Thread Andrew Scott
*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

[cfaussie] Re: Get root of the application

2007-06-06 Thread Andrew Scott
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

[cfaussie] Re: Get root of the application

2007-06-06 Thread David Harris
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

[cfaussie] Re: Get root of the application

2007-06-06 Thread Andrew Scott
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

[cfaussie] Re: Get root of the application

2007-06-06 Thread Taco Fleur
:* 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

[cfaussie] Re: Get root of the application

2007-06-06 Thread David Harris
. 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

[cfaussie] Re: Get root of the application

2007-06-06 Thread Taco Fleur
] *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

[cfaussie] Re: Get root of the application

2007-06-06 Thread Taco Fleur
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

[cfaussie] Re: Get root of the application

2007-06-05 Thread Andrew Scott
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

[cfaussie] Re: Get root of the application

2007-06-05 Thread Taco Fleur
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

[cfaussie] Re: Get root of the application

2007-06-05 Thread Andrew Scott
] 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

[cfaussie] Re: Get root of the application

2007-06-05 Thread David Harris
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

[cfaussie] Re: Get root of the application

2007-06-05 Thread Taco Fleur
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

[cfaussie] Re: Get root of the application

2007-06-05 Thread David Harris
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:

[cfaussie] Re: Get root of the application

2007-06-05 Thread Taco Fleur
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

[cfaussie] Re: Get root of the application

2007-06-05 Thread David Harris
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