Permalink
Browse files

finalizations

  • Loading branch information...
1 parent 28ce749 commit 8bd57f4fe60e08eb756eaa03139ed05679abf5c7 @lmajano lmajano committed Mar 20, 2012
@@ -23,6 +23,7 @@ structures/arrays to create for configuration
- logBox (struct)
- flash (struct)
- orm (struct)
+- validation (struct)
Available objects in variable scope
- controller
@@ -36,22 +37,22 @@ Optional Methods
- {environment}() : The name of the environment found and called by the framework.
*/
-
+
// Configure ColdBox Application
function configure(){
-
+
// coldbox directives
coldbox = {
//Application Setup
appName = "Your app name here",
eventName = "event",
-
+
//Development Settings
debugMode = true,
debugPassword = "",
reinitPassword = "",
handlersIndexAutoReload = true,
-
+
//Implicit Events
defaultEvent = "General.index",
requestStartHandler = "Main.onRequestStart",
@@ -61,7 +62,7 @@ Optional Methods
sessionStartHandler = "",
sessionEndHandler = "",
missingTemplateHandler = "",
-
+
//Extension Points
UDFLibraryFile = "includes/helpers/ApplicationHelper.cfm",
coldboxExtensionsLocation = "",
@@ -71,40 +72,40 @@ Optional Methods
layoutsExternalLocation = "",
handlersExternalLocation = "",
requestContextDecorator = "",
-
+
//Error/Exception Handling
exceptionHandler = "",
onInvalidEvent = "",
customErrorTemplate = "",
-
+
//Application Aspects
handlerCaching = false,
eventCaching = false,
proxyReturnCollection = false
};
-
+
// custom settings
settings = {
-
+
};
-
+
// environment settings, create a detectEnvironment() method to detect it yourself.
// create a function with the name of the environment so it can be executed if that environment is detected
// the value of the environment is a list of regex patterns to match the cgi.http_host.
environments = {
//development = "^cf8.,^railo."
};
-
+
// Module Directives
modules = {
//Turn to false in production
autoReload = false,
// An array of modules names to load, empty means all of them
include = [],
// An array of modules names to NOT load, empty means none
- exclude = []
+ exclude = []
};
-
+
//LogBox DSL
logBox = {
// Define Appenders
@@ -114,39 +115,49 @@ Optional Methods
// Root Logger
root = { levelmax="INFO", appenders="*" },
// Implicit Level Categories
- info = [ "coldbox.system" ]
+ info = [ "coldbox.system" ]
};
-
+
//Layout Settings
layoutSettings = {
defaultLayout = "Layout.Main.cfm",
defaultView = ""
};
-
+
//WireBox Integration
- wireBox = {
+ wireBox = {
enabled = true,
- //binder="config.WireBox",
- singletonReload=true
+ //binder="config.WireBox",
+ singletonReload=true
};
-
+
//Interceptor Settings
interceptorSettings = {
throwOnInvalidStates = false,
customInterceptionPoints = ""
};
-
+
//Register interceptors as an array, we need order
interceptors = [
//SES
{class="coldbox.system.interceptors.SES",
properties={}
}
];
-
-
+
+ // Object & Form Validation
+ validation = {
+ // manager = "class path" or none at all to use ColdBox as the validation manager
+ // The shared constraints for your application.
+ sharedConstraints = {
+ // EX
+ // myForm = { name={required=true}, age={type="numeric",min="18"} }
+ }
+ };
+
+
/*
-
+
// ORM services, injection, etc
orm = {
// entity injection
@@ -159,7 +170,7 @@ Optional Methods
exclude = ""
}
};
-
+
// flash scope configuration
flash = {
scope = "session,client,cluster,ColdboxCache,or full path",
@@ -169,7 +180,7 @@ Optional Methods
autoPurge = true, // automatically purge flash data for you
autoSave = true // automatically save flash scopes at end of a request and on relocations.
};
-
+
//Register Layouts
layouts = [
{ name = "login",
@@ -178,7 +189,7 @@ Optional Methods
folders = "tags,pdf/single"
}
];
-
+
//Conventions
conventions = {
handlersLocation = "handlers",
@@ -188,7 +199,7 @@ Optional Methods
modelsLocation = "model",
eventAction = "index"
};
-
+
//IOC Integration
ioc = {
framework = "lightwire",
@@ -200,7 +211,7 @@ Optional Methods
definitionFile = "config/parent.xml.cfm"
}
};
-
+
//Debugger Settings
debugger = {
enableDumpVar = false,
@@ -220,29 +231,29 @@ Optional Methods
showModulesPanel = true,
expandedModulesPanel = false
};
-
+
//Mailsettings
mailSettings = {
server = "",
username = "",
password = "",
port = 25
};
-
+
//i18n & Localization
i18n = {
defaultResourceBundle = "includes/i18n/main",
defaultLocale = "en_US",
localeStorage = "session",
- unknownTranslation = "**NOT FOUND**"
+ unknownTranslation = "**NOT FOUND**"
};
-
+
//webservices
webservices = {
testWS = "http://www.test.com/test.cfc?wsdl",
- AnotherTestWS = "http://www.coldbox.org/distribution/updatews.cfc?wsdl"
+ AnotherTestWS = "http://www.coldbox.org/distribution/updatews.cfc?wsdl"
};
-
+
//Datasources
datasources = {
mysite = {name="mySite", dbType="mysql", username="root", password="pass"},
@@ -251,6 +262,6 @@ Optional Methods
*/
}
-
+
</cfscript>
</cfcomponent>
Binary file not shown.
Binary file not shown.
View

Large diffs are not rendered by default.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 8bd57f4

Please sign in to comment.