MACROMEDIA COLDFUSION 5-DEVELOPING Develop Manual page 240

Table of Contents

Advertisement

220
Example: Application.cfm
The following example shows a complete Application.cfm file for the sample
Products application:
<!--- Set application name and enable Client variables, stored in
<cfapplication name="Products"
<!--- Set custom global error handling pages for this application--->
<cferror type="REQUEST"
<cferror type="VALIDATION"
<!--- Set application-specific constants. These are put in the
<cfset homepage="http://www.mycompany.com">
<cfset primarydatasource="CompanyDB">
<!--- set global error handling for this application --->
<!--- set Session variable for this application.--->
<!--- Note that the cfset tag is surrounded by a cflock tag --->
<cflock
</cflock>
<cfset mainpage = "default.cfm">
<cfset sm_location = "dpa">
<cfset current_page = "#cgi.path_info#?#cgi.query_string#">
a data source called mycompany --->
clientmanagement="Yes"
clientstorage="mycompany"
sessionmanagement="Yes">
template="requesterr.cfm"
mailto="admin@company.com">
template="validationerr.cfm">
Variables scope of every page in the application--->
timeout="30"
scope="Session"
type="exclusive">
<cfset session.current_location = "Davis, Porter, Alewife">
Chapter 12 Using the Application Framework

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 5-DEVELOPING and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Coldfusion 5

Table of Contents