Last active
January 4, 2016 05:39
-
-
Save kladov/8576544 to your computer and use it in GitHub Desktop.
symfony 1.4 - get all form errors by field
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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