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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.