Skip to content

Instantly share code, notes, and snippets.

@adatta02
Last active December 12, 2015 08:18
Show Gist options
  • Save adatta02/4743042 to your computer and use it in GitHub Desktop.
Save adatta02/4743042 to your computer and use it in GitHub Desktop.
<?php
foreach($form->getErrors() as $e)
$errors[]=$translator->trans($this->convertFormErrorObjToString($e), array(), 'validators');
foreach($this->getAllErrors($children) as $key=>$error)
$errors[]=$key.': '.$translator->trans($error[0], array(), 'validators');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment