Creating the Application.cfm File

The special application-wide page called Application.cfm defines application-level settings and functions such as:

Note Because UNIX is case sensitive, the application framework file must be spelled with an initial capital, Application.cfm, for applications that run on UNIX platforms.

Naming the application

In ColdFusion, you define an application by giving it a name using the CFAPPLICATION tag. By using the same application name in a CFAPPLICATION tag, you define a set of pages as being part of the same logical application.

Note The value you set for the NAME attribute in CFAPPLICATION is limited to 64 characters.

Note To name the application:
  1. Open Studio and create a new file.
  2. Modify the file so that it appears as follows:
    <!--- This example illustrates CFAPPLICATION --->
    
    <!--- Name the application --->
    <CFAPPLICATION NAME="SearchApp">
    
  3. Save the file as Application.cfm in the root directory of your application framework.