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

22. ColdFusion Components

Chapter 22. ColdFusion Components

ColdFusion Components (CFCs) are new in ColdFusion MX. CFCs offer an additional way to encapsulate code beyond the capabilities provided by includes, user-defined functions, and custom tags. CFCs give you a framework for leveraging object-oriented principles and techniques to better organize and reuse your code. CFCs also serve as the primary interface for web services in ColdFusion MX, as well as for integration between Flash MX and ColdFusion MX via Flash Remoting.

In previous versions of ColdFusion, if you wanted to encapsulate your code, you basically had three options. You could put your code in a separate file and cfinclude it, you could write it as a UDF, or you could create a custom tag. Each technique had its advantages and disadvantages, as well as appropriate usages.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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