Using Settings

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:
You can also get access to these methods via the ColdBox Controller component:
Injecting Settings
You can use the WireBox injection DSL to inject settings in your models or non-coldbox objects. Below are the available DSL notations:
coldbox:setting:{key}: Inject a specified config setting keycoldbox:fwsetting:{key}: Inject a specified system setting keycoldbox:configSettings: Inject a reference to the application settings structurecoldbox:fwSettings: Inject a reference to the ColdBox System settings structure
Last updated
Was this helpful?