Skip to content

Configuration

get()

get() — returns any

Available in: controller, model, migrator Category: Miscellaneous Functions

Returns the current setting for the supplied CFWheels setting or the current default for the supplied CFWheels function argument.

NameTypeRequiredDefaultDescription
namestringyesVariable name to get setting for.
functionNamestringnoFunction name to get setting for.
// 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");