Notice: With the launch of Adobe Cookbooks, this site will no longer be accepting new entries or posting new content. Thanks to everyone who submitted content!

Components

This category covers ColdFusion Components (CFCs).

Problems

How do I avoid forgetting to declare local variables?
It is critical when writing component methods and UDFs that every variable defined in the code is pr...

How do I get around a lack of constructors in CFCs?
A widely adopted practice is to create an "init" method that returns the object. Example: Th...

How to I initialize a CFC at the same time as I create it?
In many examples using CFCs, the call that creates the CFC also calls an init() method. This is done...