Created
December 30, 2012 18:06
-
-
Save adamcameron/4414194 to your computer and use it in GitHub Desktop.
Coldbox.cfc for Brad / Coldbox forum bods
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
component{ | |
public void function configure(){ | |
variables.coldbox = { | |
appName = application.applicationName, // I'm not over the moon about this break of encapsulation, but equally I want to be as DRY as possible. I dunno why I need to specify this (again) | |
appHomeUrl = "http://#CGI.http_host##CGI.script_name#", | |
defaultEvent = "bug.main", | |
// TODO: get rid once I understand what's going on | |
HandlersIndexAutoReload = true, | |
handlerCaching = false, | |
debugMode = false | |
}; | |
variables.flash = { | |
scope = "coldbox.system.web.flash.ColdboxCacheFlash" | |
}; | |
variables.layoutSettings = { | |
defaultLayout = "html5.cfm", | |
defaultView = "main/default" | |
}; | |
interceptors = [ | |
{ | |
class = "coldbox.system.interceptors.Security", | |
name = "ApplicationSecurity", | |
properties = { | |
rulesSource = "xml", | |
rulesFile = "config/security.xml" | |
} | |
} | |
]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment