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