If you are calling a file as a custom tag (e.g., doing a <CF_MyFile> or <CFMODULE template="MyFile.cfm">) the application.cfm file will not be included when executing _that_ file. Other than that the application.cfm will _always_ be included.
Another possibility is that the file is in a subdirectory that has its own application.cfm file. In that case the application.cfm in the subdirectory will be called rather than the one in the parent directory. If neither of those things apply, here's a couple of things to try: - if you can turn debugging on, do it and then check to see if application.cfm is actually being included or not. - if you cannot turn debugging on, try just outputting a message in the application.cfm file to see if it's being included or not. Bob > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of Glenn Shukster > Sent: Saturday, 2 March 2002 9:03 a.m. > To: cfTalk > Subject: [CFTALKTor] Application.cfm question > > > I thought Application.cfm was included in all files automatically. > > In some files the below line will bomb > <cfquery name="qryName" datasource="#ODBC_DSN#"> > ... > > In Application.cfm > <cfset ODBC_DSN = "MyODBCName"> > > In many of the cfm files this works perfectly without doing anything. > In a few others I have to do a cfinclude of the application.cfm or it > bombs. > Why? > -- > Cheers > Glenn Shukster (Logic Fundamentals Inc.) Thornhill, Ont. Canada > Phone:(905)771-6458 Fax:(905)771-6819 www.logicfundamentals.com > President of TDUG www.tdug.com > - > You are subscribed to the CFUGToronto CFTALK ListSRV. > This message has been posted by: Glenn Shukster > <[EMAIL PROTECTED]> > To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/ > Manager: Kevin Towes ([EMAIL PROTECTED]) > http://www.CFUGToronto.org/ > This System has been donated by Infopreneur, Inc. > (http://www.infopreneur.net) > - You are subscribed to the CFUGToronto CFTALK ListSRV. This message has been posted by: "Bob Silverberg" <[EMAIL PROTECTED]> To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/ Manager: Kevin Towes ([EMAIL PROTECTED]) http://www.CFUGToronto.org/ This System has been donated by Infopreneur, Inc. (http://www.infopreneur.net)
