----- Original Message ----- From: "Scott Wilhelm" <[EMAIL PROTECTED]> > Am I able to put variables in there that will be used throughout the > application, more or less to clean up the page? ---------------------------
Yeah, setting variables for things like Datasource Names is a common use for Application.cfm. I usually use the Request scope, eg: <cfset request.DSN = "myDB"> Application-wide things like this could be set in the Application scope of course, but then pre-MX you've got locking issues for reading is, whereas the Request scope is (1) free of any locking worries and (2) available to all CF templates, including custom tags. As for OnRequestEnd.cfm - I think it's a good idea to always include this. Apparently CF looks for one every request, so if you even put a blank one in (with a space or something as CF doesn't like zero-length files), there's a tiny performance benefit. I find it useful for adding your own debugging output, CFDUMPing specific variables while developing, etc. Gyrus [EMAIL PROTECTED] work: http://www.tengai.co.uk play: http://norlonto.net PGP key available ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

