simiane

23109682 Test: Application.cfc

Apr 16th, 2014
139
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <cfcomponent
  2.     displayname="Application"
  3.     output="true"
  4.     hint="Handle the application.">
  5.  
  6.  
  7.     <!--- Set up the application. --->
  8.     <cfscript>
  9.         // Application settings
  10.             THIS.name       = 'TestApp' & hash(getCurrentTemplatePath());
  11.  
  12.         // Set CF Version number
  13.         if (NOT isDefined('Application.sCFVersion'))
  14.             Application.sCFVersion  = GetToken(SERVER.ColdFusion.ProductVersion, 1, ',') & '.' & GetToken(SERVER.ColdFusion.ProductVersion, 2, ',');
  15.  
  16.         // Mappings
  17.             THIS.mappings['/com']   = GetDirectoryFromPath(GetCurrentTemplatePath()) & "../com";
  18.     </cfscript>
  19.  
  20. </cfcomponent>
RAW Paste Data