Using Settings
PreviousSystem Settings (Java Properties and Environment Variables)NextBootstrapper - Application.cfc
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
/**
* Get a setting from the system
* @name The key of the setting
* @fwSetting Retrieve from the config or fw settings, defaults to config
* @defaultValue If not found in config, default return value
*/
function getSetting( required name, boolean fwSetting=false, defaultValue )
/**
* Verify a setting from the system
* @name The key of the setting
* @fwSetting Retrieve from the config or fw settings, defaults to config
*/
boolean function settingExists( required name, boolean fwSetting=false )
/**
* Set a new setting in the system
* @name The key of the setting
* @value The value of the setting
*
* @return FrameworkSuperType
*/
any function setSetting( required name, required value )controller.getSetting()
controller.setSetting()
controller.settingExists()
controller.getConfigSettings()
controller.getColdBoxSettings()component{
property name="mysetting" inject="coldbox:setting:mysetting";
property name="path" inject="coldbox:fwSetting:path";
property name="config" inject="coldbox:configSettings";
property name="settings" inject="coldbox:fwSettings";
}