I am trying to customize the default error message \"Value is required and can\'t be empty\" in zf2
Value is required and can\'t be empty
I am using following code to add customise default e
You also can set the error message of inputFilter so:
$form = new ParticipantForm(); $mailInput = new Input('mail'); $mailInput->setRequired(true); $mailInput->setErrorMessage("Empty input");