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

Get Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started 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.