Creating a Complete Application

Now that you’ve created add, modify, and delete templates, let’s put them all together and create a finished application—and this time, one that is constructed properly, using a CFC for database access.

The following templates are a combination of all you have learned in this and previous chapters.

Listing 14.15 is the ColdFusion Component that provides all database access (to get, add, update, and delete movies).

ColdFusion Components were introduced in Chapter 11, “The Basics of Structured Development.”
Listing 14.15. movies.cfc—Movie Database Access
<!--- Name: movies.cfc Author: Ben Forta (ben@forta.com) Description: Movie database access component Created: 07/01/07 ---> <cfcomponent hint="OWS movie database ...

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.