Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. component {
  2.  
  3.     this.name = 'ColdBoxTestingSuite' & hash(getCurrentTemplatePath());
  4.     this.sessionManagement = true;
  5.     this.sessionTimeout = createTimeSpan(0, 0, 30, 0);
  6.     this.setClientCookies = true;
  7.  
  8.     // Setup ORM
  9.     this.datasource = "sorry";
  10.     this.ormenabled = true;
  11.     this.ormsettings = {
  12.         // More elborate settings for the ORM.
  13.         dbcreate = "dropcreate",
  14.         cfclocation = ["/sorryapp/model/"]
  15.         };
  16.    
  17.     this.mappings["/approot"] = ExpandPath( "../" );
  18.  
  19.     public boolean function onRequestStart(string targetPage) {
  20.         // Reload the ORM configuration and mappings.
  21.         ORMReload();
  22.  
  23.         // Confirm that the request has been processed.
  24.         return True;       
  25.     }
  26.    
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement