Return to v2.5.0 docs

get()


Configuration Miscellaneous Functions any controller model test migrator migration tabledefinition


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

Name Type Required Default Description
name string Yes Variable name to get setting for.
functionName string No Function 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");

Related Functions

Miscellaneous Functions