O'Reilly logo

ColdFusion 8 Developer Tutorial by John Farrar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Introducing the Application.cfc Object

The first thing we need to do is to understand how this application page is called. When a .cfm or .cfc file is called, the server seeks for an Application.cfc file in that directory. It also looks for an Application.cfm file. We do not create application or session scope with the .cfm version because.cfc is much more powerful. It provides for better encapsulation and code reuse. If the file is found, ColdFusion runs it. If the file is not found, then it moves up one directory towards the sever root directory in order to search for an Application.cfc file. The search stops either when a file is found, or once it reaches the root directory and a file is not found.

There are several methods in the Application.cfc ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required