globalConfig
The globalConfig is a wrapper of Mura's configBean object, and is a subscope object of the Mura Scope. It includes instance-wide configuration data, such as data collected in the settings.ini.cfm file.
Syntax
The following examples illustrate how to "get" and/or "set" various attributes of the globalConfig. Use whichever syntax feels best to you.
Getters
m.globalConfig('attributeName')
m.globalConfig().get('attributeName')
m.globalConfig().get{AttributeName}()
m.globalConfig().getValue('attributeName')
Setters
m.globalConfig('attributeName', 'someValue')
m.globalConfig().set('attributeName', 'someValue')
m.globalConfig().set{AttributeName}('someValue')
m.globalConfig().setValue('attributeName', 'someValue')
Note: Setting any values with globalConfig are only temporary, and last for the duration of the request. In other words, calling the save method on globalConfig will not save any values.
Returns
A populated configBean object.
Usage
Use this scope to access global configuration attributes.
Attributes
See the Config Bean section for details on available attributes.