SproutCMS

This is the code documentation for the SproutCMS project

function setErrors()

Set per-field error messages to display

A given field can have either a single error message or an array of errors
The output from the Validator::getFieldErrors method can be used directly as input to this method

Usage

void Form::setErrors ( array $errors );

Arguments

  1. array $errors
    In the format
           Key: (string)<field name>
           Value: (string | array of string)<errors>

Return value

  • void