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
onlystringno—List of action names to limit this verification to.
exceptstringno—List of action names to exclude this verification from.
postanyno—Set to true to verify that this is a POST request.
getanyno—Set to true to verify that this is a GET request.
ajaxanyno—Set to true to verify that this is an AJAX request.
cookiestringno—Verify that the passed in variable name exists in the cookie scope.
sessionstringno—Verify that the passed in variable name exists in the session scope.
paramsstringno—Verify that the passed in variable name exists in the params struct.
handlerstringno—Pass in the name of a function that should handle failed verifications. The default is to just abort the request when a verification fails.
cookieTypesstringno—List of types to check each listed cookie value against (will be passed through to your CFML engine’s IsValid function).
sessionTypesstringno—List of types to check each list session value against (will be passed through to your CFML engine’s IsValid function).
paramsTypesstringno—List of types to check each params value against (will be passed through to your CFML engine’s IsValid function).