Configuration
set()
Signature
Section titled “Signature”set() — returns void
Available in: controller, model, migrator, migration, tabledefinition
Category: Miscellaneous Functions
Description
Section titled “Description”Use to configure a global setting or set a default for a function.
Examples
Section titled “Examples”// 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>"):