• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 5. The Fuses > Fuse Examples

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.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint