Advertisement
Guest User

Untitled

a guest
Jan 28th, 2011
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. component extends='coldbox.system.Coldbox' {
  2.    
  3.     this.name = hash(getCurrentTemplatePath());
  4.     this.sessionManagement = true;
  5.     this.sessionTimeout = createTimeSpan(0, 0, 30, 0);
  6.     this.setClientCookies = true;
  7.    
  8.     COLDBOX_APP_ROOT_PATH = getDirectoryFromPath(getCurrentTemplatePath());
  9.     COLDBOX_APP_MAPPING = '';
  10.     COLDBOX_CONFIG_FILE = '';
  11.     COLDBOX_ALL_KEY = '';
  12.    
  13.     public boolean function onApplicationStart() {
  14.         // Load ColdBox
  15.         loadColdBox();
  16.        
  17.         // Confirm that the application has loaded.
  18.         return True;
  19.     }
  20.    
  21.     public boolean function onRequestStart(string targetPage) {
  22.         // Carry out the reload checks.
  23.         reloadChecks();
  24.        
  25.         // Ensure we only process a coldbox request.
  26.         if (findNoCase('index.cfm', listLast(arguments.targetPage, '/'))) {
  27.             // This is a coldbox request, process it.
  28.             processColdBoxRequest();
  29.         }
  30.        
  31.         // Confirm that the request has been processed.
  32.         return True;       
  33.     }
  34.    
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement