September 2007
Intermediate to advanced
600 pages
20h 21m
English
The new method that we’ll be adding to our Application.cfc file is the onMissingTemplate function. This method is passed one argument: the name of the script that was requested. Listing 19.13 shows the latest version of the Application.cfc file. Be sure to save this file as Application.cfc, not Application7.cfc.
<!--- Filename: Application.cfc (The "Application Component") Created by: Raymond Camden (ray@camdenfamily.com) Purpose: Sets "constant" variables and includes consistent header ---> <cfcomponent output="false"> <cfset THIS.name = "ows19"> <cferror type="Request" template="ErrorRequest.cfm" mailto="webmaster@orangewhipstudios.com"> <cferror type="Exception" ... |
Read now
Unlock full access