Skip to content

Controller

verifies()

verifies() — returns void

Available in: controller Category: Configuration Functions

Instructs Wheels to verify that some specific criteria are met before running an action. Note that all undeclared arguments will be passed to redirectTo() call if a handler is not specified.

NameTypeRequiredDefaultDescription
onlystringnoList of action names to limit this verification to.
exceptstringnoList of action names to exclude this verification from.
postanynoSet to true to verify that this is a POST request.
getanynoSet to true to verify that this is a GET request.
ajaxanynoSet to true to verify that this is an AJAX request.
cookiestringnoVerify that the passed in variable name exists in the cookie scope.
sessionstringnoVerify that the passed in variable name exists in the session scope.
paramsstringnoVerify that the passed in variable name exists in the params struct.
handlerstringnoPass in the name of a function that should handle failed verifications. The default is to just abort the request when a verification fails.
cookieTypesstringnoList of types to check each listed cookie value against (will be passed through to your CFML engine’s IsValid function).
sessionTypesstringnoList of types to check each list session value against (will be passed through to your CFML engine’s IsValid function).
paramsTypesstringnoList of types to check each params value against (will be passed through to your CFML engine’s IsValid function).