SHARE
TWEET

23109682 Test: Application.cfc

simiane Apr 16th, 2014 42 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top