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 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.