OnRequestEnd.cfmm will run in whatever directory the Application.cfm file was found in.

So if you run a template in a directory that is two levels down from the root CF will 
search for an Application.cfm file in that same directory first, if one is not present 
there. it wall then hunt up the tree to the root looking for an Application.cfm. 
Whatever directory the Application.cfm file is found in, CF then looks in that same 
directory for the OnRequestEnd.cfm if it doesn't find it there it won't look any 
further.

"The OnRequestEnd.cfm page must be in the same directory as the Application.cfm page 
ColdFusion uses for the current page. ColdFusion does not search beyond that 
directory, so it does not run an OnRequestEnd.cfm page that resides in another 
directory."



-----Original Message-----
From: Geoff Bowers [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 26 August 2003 7:33 PM
To: CFAussie Mailing List
Subject: [cfaussie] Re: Friend for application.cfm?


Mike Kear wrote:
> Be aware that the behaviour of OnRequestEnd.cfm is slightly different to the
> Application.cfm however.    ColdFusion wont go hunting up the tree for a
> OnRequestEnd.cfm file if it doesn't find one in the current directory, like
> it does with Application.cfm.   So you have to put one of them in every
> directory where you want it to act, including the subdiretories.

While this was certainly true of CF5 -- I'm not entirely sure this is 
the behaviour in CFMX.  It's been a while since I bothered to look but I 
have a sneaking suspicion that the OnReQuestEnd.cfm is independent of 
Application.cfm now.

-- geoff
http://www.daemon.com.au/


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to