22.08.2013 Views

ColdFusion Developer's Guide

ColdFusion Developer's Guide

ColdFusion Developer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta<br />

You can divide your logical web application into multiple <strong>ColdFusion</strong> applications by using<br />

multiple application definition pages with different application names. Alternatively, you can<br />

use multiple application definition pages that specify the same application name, but have<br />

different code, for different subsections of your application.<br />

The directory trees in the following figure show two approaches to implementing an<br />

application framework:<br />

■ In the example on the left, a company named Web Wonders, Inc. uses a single<br />

Application.cfc file installed in the application root directory to process all application<br />

page requests.<br />

■ In the example on the right, Bandwidth Associates uses the settings in individual<br />

Application.cfc files to create individual <strong>ColdFusion</strong> applications at the departmental<br />

level. Only the Products application pages are processed using the settings in the root<br />

Application.cfc file. The Consulting, Marketing, and Sales directories each have their own<br />

Application.cfc file.<br />

Web Wonder, Inc.<br />

Application.cfc<br />

Products<br />

Support<br />

Services<br />

Orders<br />

330 Designing and Optimizing a <strong>ColdFusion</strong> Application<br />

Bandwith Associates<br />

Application.cfc<br />

Products<br />

Consulting<br />

Marketing<br />

Sales<br />

Application.cfc<br />

Application.cfc<br />

Application.cfc

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!