Creating Your First CFC

To create ColdFusion Components, you need to learn some important new CFML tags. We’ll start by creating a CFC manually. Later in the chapter you will get to use Dreamweaver’s CFC wizard.

Note

As before, examples in this chapter use the data in the ows data sources and database. These must be present before continuing.

All the files created in this chapter need to go in a directory named 11 under the application root (the ows directory under the Web root).

The first thing you need to create a ColdFusion Component is a new file, so create a file named intro.cfc in the 11 folder. Delete any automatically generated content, and make sure that the file is empty.

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.