Guest User

Untitled

a guest
Nov 24th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. component extends="coldmvc.Application" {
  2.  
  3.     // Application properties
  4.     this.name = "coldmvc-hyrule" & hash(getCurrentTemplatePath());
  5.     this.sessionManagement = true;
  6.     this.sessionTimeout = createTimeSpan(0,0,90,0);
  7.     this.setClientCookies = true;
  8.    
  9.     // ORM SETTINGS
  10.     this.ormEnabled = true;
  11.     this.datasource = "hellohyrule";
  12.     this.ormSettings = {
  13.         dbcreate = "update",
  14.         eventhandling = true,
  15.         flushAtRequestEnd = false,
  16.         cfclocation = '/hyrule/samples/frameworks/coldmvc/app/model',
  17.         logsql = true,
  18.         useDBForMapping = false,
  19.         secondaryCacheEnabled = false
  20.     };
  21.    
  22.     public void function onRequestStart(){
  23.         super.onRequestStart();
  24.        
  25.         if(structKeyExists(url,"reload")){
  26.             ormReload();
  27.         }
  28.     }
  29. }
Add Comment
Please, Sign In to add comment