Return to v2.5.0 docs

set()


Configuration Miscellaneous Functions void controller model test migrator migration tabledefinition


Use to configure a global setting or set a default for a function.

// Example 1: Set the `URLRewriting` setting to `Partial`.
set(URLRewriting="Partial");

// Example 2: Set default values for the arguments in the `buttonTo` view helper. This works for the majority of Wheels functions/arguments.
set(functionName="buttonTo", onlyPath=true, host="", protocol="", port=0, text="", confirm="", image="", disable="");

// Example 3: Set the default values for a form helper to get the form marked up to your preferences.
set(functionName="textField", labelPlacement="before", prependToLabel="<div>", append="</div>", appendToLabel="<br>"):

Related Functions

Miscellaneous Functions