Fuse Examples

Now that we have completed the lecture on fuse rules, you are probably masters of fuse use. However, you have not seen examples of each fuse type, so here we go.

Action Fuses in Use

Action files have one infallible rule: If a file uses the act_ prefix, it cannot output. Whether the requesting client is a browser, a WAP phone, a web service, or a <cfmodule> tag, action fuses can only contain CFML logic and service calls. Use of <cfoutput> should be strictly limited to looping over query resultsets to perform manipulations of the data. We even prefer to use <cfloop query=""> instead of <cfoutput query=""> in action fuses. The <cfoutput> tag introduces extra whitespace, which, although harmless, is not pretty in action fuses.

In ...

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.