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

Chapter 11. The Basics of Structured Dev... > Introducing ColdFusion Components

Introducing ColdFusion Components

Like the ColdFusion templates you have already seen, ColdFusion Components are ColdFusion files that you create and use. Both are plain text files and both contain CFML code, but that's where the similarities end.

  • ColdFusion templates have no fixed format, and can contain all sorts of tags in any order. ColdFusion Components have a very strict and rigid format.

  • ColdFusion templates are processed starting at the top of the file and working downwards. ColdFusion Components have one or more starting and ending points, essentially different blocks of functionality within a single file.

  • ColdFusion templates have a .cfm extension. ColdFusion Components have a .cfc extension.

  • ColdFusion templates are designed to be invoked by a user (in a browser). ColdFusion Components are generally invoked by other code (and not by end users directly).


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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