Section 11: fbx_layouts.cfm and Layout Files

Fusebox has a place for everything. Application-wide settings such as variable constants and DSN names go in the root fbx_settings.cfm. Circuit-wide settings such as security logic go in each circuit’s fbx_settings.cfm. The fbx_switch.cfm serves as a roadmap to a circuit by showing the fuses that make up each fuseaction. The individual fuses do the work of the application and run the code needed to satisfy each request. What about layouts: headers, footers, and nested tables?

Two pieces make up Fusebox’s layout structure: circuit-level fbx_layouts.cfm files and layout files. In short, the fbx_layouts.cfm file tells the framework which layout file to use for this request, and the layout file contains ...

Get Fusebox: Developing ColdFusion® Applications now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.