Return to v1.4.5 docs

set()



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

<!--- Example 1: Set the `URLRewriting` setting to `Partial` --->
<cfset 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. --->
<cfset 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 --->
<cfset set(functionName="textField", labelPlacement="before", prependToLabel="<div>", append="</div>", appendToLabel="<br />")>