Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 246

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Developing CFML Applications
• In the example on the right, Bandwidth Associates uses the settings in individual Application.cfc files to create
individual ColdFusion applications at the departmental level. Only the Products application pages are processed
using the settings in the root Application.cfc file. The Consulting, Marketing, and Sales directories each have their
own Application.cfc file.
Web Wonders, Inc.
Application.cfc
Products
Support
Services
Defining the application and its event handlers in Application.cfc
The Application.cfc file defines application-wide settings and variables, and application event handlers:
• Application-wide settings and variables include page processing settings, default variables, data sources, style
settings, and other application-level constants.
• Application event handlers are CFC methods that ColdFusion automatically executes when specific events occur
during the lifetime of an application: application start and end, session start and end, request start, execution, and
end, and exceptions.
Defining application-level settings and variables
When you create an application, you can set many application-wide properties and characteristics, including the
following items:
• Application name
• Application properties, including Client-, Application-, and Session-variable management options
• Page processing options
• Default variables, data sources, style settings, and other application-level constants
For information on setting default variables, see
onApplicationStart" on page 245.
Bandwidth Associates
Orders
"Setting application default variables and constants in
Last updated 1/20/2012
Application.cfc
Products
Consulting
Application.cfc
Marketing
Application.cfc
Sales
Application.cfc
241

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents