The ColdBox Controller (stored in ColdFusion application scope) stores all your application settings and also your system settings:
ColdboxSettings : Framework specific system settings
ConfigSettings : Your application settings
You can use the following methods to retrieve/set/validate settings in your handlers/layouts/views and interceptors:
FrameworkSuperType.cfc
/** * Get a setting from the system * @nameThe key of the setting * @fwSetting Retrieve from the config or fw settings, defaults to config * @defaultValue If not found in config, default return value */functiongetSetting( required name, boolean fwSetting=false, defaultValue )/** * Verify a setting from the system * @nameThe key of the setting * @fwSetting Retrieve from the config or fw settings, defaults to config */booleanfunctionsettingExists( required name, boolean fwSetting=false )/** * Set a new setting in the system * @nameThe key of the setting * @value The value of the setting * * @return FrameworkSuperType */anyfunctionsetSetting( required name, required value )
You can also get access to these methods via the ColdBox Controller component: