Skip to content

Instantly share code, notes, and snippets.

@czerasz
Created May 14, 2011 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save czerasz/972350 to your computer and use it in GitHub Desktop.
Save czerasz/972350 to your computer and use it in GitHub Desktop.
Zend Framework Form all error messages
foreach ($form->getMessages() as $fieldName => $errorMessages) {
foreach ($errorMessages as $messageKey => $message) {
echo $fieldName.': '.$messageKey.' -> '.$message.'<br />';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment