Does that even work?
 
I thought the onRequestEnd.cfm file only got called after the application.cfm in the same directory
 
if you include it, all your doing is including a file
 
so if your including an application.cfm file from an application.cfm file, its not going to trigger the onRequestEnd.cfm template
 
No?
 
Steve
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Elliot Russo
Sent: Tuesday, September 21, 2004 4:46 PM
To: CFAussie Mailing List
Subject: [cfaussie] Re: Include application.cfm

Hi Taco,
 
do it all the time Taco, and much as Robin described. also do it for the other little matching template onrequestend.cfm :) - remember to always make a pair.
 
I only ever have one cfapplication tag and that is in the root application.cfm
 
I only add directory (read - sub-bit of functionality) specific application.cfm when i want to append/prepend to the application processing logic provided by application.cfm/onrequestend.cfm.
 
I prepend when i want the 'mother' application.cfm to take action based on the input, and append when i just want to add common processing/variables.
 
example - a local appliccation.cfm
 
<cfset request.directorySecure = true>
<cfinclude template="../application.cfm"><!---the next one down, which may or may not be the 'mother'--->
 
<cfset request.someGlobal = 35> <!--- for this scope (directory) of code--->
...
 
example - a local onrequestend.cfm
 
<cfset request.displayDebugging= true>
<cfinclude template="../onrequestend.cfm">
 
etc
 
Elliot
 
 
"Taco Fleur" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]...
Any reason not to include application.cfm in another application.cfm?
 
Currently I have something like:
 
web/application.cfm
web/object/application.cfm
web/object/function/application
 
each application.cfm includes the one above
 
Just looking for some feedback I have not thought of yet ...
 
--
Taco Fleur
Senior Web Systems Engineer
http://www.webassociates.com
 
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to