----- Original Message ----- From: "Patti G. L. Hall" <[EMAIL PROTECTED]> > Well, the thing is if you put that kind of code in application.cfm, you'll > be calling it EVERY time youc all ANY template. > > For example, lets say that in your page you are calling a couple of > includes... Maybe one has a udf library. Maybe another has a whole bunch of > queries. Maybe another has a calendar or something reusable like that. In > that case you will be calling application.cfm 4 times... Not just once, > because every time one of those includes gets called, the application.cfm > file is run first. All The Time. ----------------------------
I might be misreading you, but this doesn't seem right. Application.cfm only gets called for every HTTP request, not for every file processed by the server during that request. I do agree that it's probably not best to use it for headers and OnRequestEnd.cfm as a footer, though. It seems to be one of the first "hints", even in good CF books, regarding these tags, and it's not a great idea. For me, I use index.cfm as a gateway to every page in my app, and it starts with a DOCTYPE and ends with </html>. It's the bare template for every actual HTML page that gets generated. Any output in Application.cfm or OnRequestEnd.cfm would be outside the document - not good! Gyrus [EMAIL PROTECTED] work: http://www.tengai.co.uk play: http://www.norlonto.net PGP key available ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm

