Using Application.cfm

The key to all of this high-tech magic is a special template file called Application.cfm that resides in a folder along with your application's templates and subfolders. Application.cfm is a lot like the .ini files used by many Windows applications, or the .conf files familiar to users of UNIX-based operating systems. It defines a set of parameters to be used throughout your application, including

  • The name of your application

  • Default variable values

  • Custom error pages

  • Data sources

  • Default style settings

  • Security settings

By creating an Application.cfm file to accompany your various template files, you can specify a set of values to be used by every template that resides in that folder, or folders below it in the directory tree. ...

Get Sams Teach Yourself ColdFusion® in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.