Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started
by Ben Forta, Raymond Camden, Charlie Arehart
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access