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

Multi-Tier Applications

As we said, a single-tiered application is just that, with everything thrown into a single tier. A multi-tiered application (or an n-tier application) is an application that is broken into different layers, each responsible for just part of the complete application.

This may sound complex, bit it needn’t be. Consider the code in Listing 11.1 (and all of the data-driven code in Chapter 10). That code could be broken up as follows:

  • Data is stored in the database.

  • All database access queries are stored in a special file. This file does no data presentation (it doesn’t generate HTML, for example) and all database access is via this file.

  • All presentation (the HTML and <cfoutput> blocks) goes in another file. This file doesn’t ...

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