Configuration
get()
Signature
Section titled “Signature”get() — returns any
Available in: controller, model, migrator
Category: Miscellaneous Functions
Description
Section titled “Description”Returns the current setting for the supplied CFWheels setting or the current default for the supplied CFWheels function argument.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
name | string | yes | — | Variable name to get setting for. |
functionName | string | no | — | Function name to get setting for. |
Examples
Section titled “Examples”// Get the current value for the `tableNamePrefix` Wheels setting
setting = get("tableNamePrefix");
// Get the default for the `message` argument of the `validatesConfirmationOf` method
setting = get(functionName="validatesConfirmationOf", name="message");