Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <cfcomponent
- displayname="Application"
- output="true"
- hint="Handle the application.">
- <!--- Set up the application. --->
- <cfscript>
- // Application settings
- THIS.name = 'TestApp' & hash(getCurrentTemplatePath());
- // Set CF Version number
- if (NOT isDefined('Application.sCFVersion'))
- Application.sCFVersion = GetToken(SERVER.ColdFusion.ProductVersion, 1, ',') & '.' & GetToken(SERVER.ColdFusion.ProductVersion, 2, ',');
- // Mappings
- THIS.mappings['/com'] = GetDirectoryFromPath(GetCurrentTemplatePath()) & "../com";
- </cfscript>
- </cfcomponent>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement