Step 8. ColdFusion Application Framework

Team-Fly    

ColdFusion® MX: From Static to Dynamic in 10 Steps
By Barry Moore
Table of Contents


Querying databases, processing forms, automating email, we have been learning some pretty groovy stuff, but now it's time to take it up a notch. Despite all the grooviness we have built into our templates, our site is still just a collection of individual pages. We have been able to pass bits of information between templates using URL and FORM variables, but we haven't been able to combine all our pages together into a cohesive application.

In this step, we are going to learn how to create an application framework to tie all our pages together. To do this, we will look at two special ColdFusion templates called Application.cfm and OnRequestEnd.cfm.

In addition, we need to learn a bit more about maintaining state throughout our application. We will learn about some of the more advanced variable scopes, such as the Session, Application, and Server scopes. We can use these scopes to share variables between all templates in our web site.


    Team-Fly    
    Top
     



    ColdFusion MX. From Static to Dynamic in 10 Steps
    ColdFusion MX: From Static to Dynamic in 10 Steps
    ISBN: 0735712964
    EAN: 2147483647
    Year: 2002
    Pages: 140
    Authors: Barry Moore

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net