O'Reilly logo

Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started by Charlie Arehart, Raymond Camden, Ben Forta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required