Skip to content

Instantly share code, notes, and snippets.

@kladov
Last active January 4, 2016 05:39
Show Gist options
  • Save kladov/8576544 to your computer and use it in GitHub Desktop.
Save kladov/8576544 to your computer and use it in GitHub Desktop.
symfony 1.4 - get all form errors by field
<?php
//symfony 1.4 - get all form errors by field
foreach( $this->form->getFormFieldSchema( ) as $name => $formField )
{
if( $formField->getError( ) != "" )
{
print( $name . " : " . $formField->getError( ) . "\n" );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment