You are viewing documentation for v1.1.x. Change

setVerificationChain()

Description

Use this function if you need a more low level way of setting the entire verification chain for a controller.

Function Syntax

setVerificationChain(chain)

Parameters

Parameter Type Required Default Description
chain array Yes An array of structs, each of which represent an argumentCollection that get passed to the verifies function. This should represent the entire verification chain that you want to use for this controller.

Examples

<!--- Set verification chain directly in an array --->
<cfset setVerificationChain([
    {only="handleForm", post=true},
    {only="edit", get=true, params="userId", paramsTypes="integer"},
    {only="edit", get=true, params="userId", paramsTypes="integer", handler="index", error="Invalid userId"}
])
>