Skip to content

Instantly share code, notes, and snippets.

@pghoratiu
Created March 21, 2012 16:14
Show Gist options
  • Save pghoratiu/2149161 to your computer and use it in GitHub Desktop.
Save pghoratiu/2149161 to your computer and use it in GitHub Desktop.
Retrieve errors from the from error schema and print it out.
<?php
$msg = '';
foreach( $form->getFormFieldSchema( ) as $name => $formField )
{
if( $formField->getError( ) != "" )
{
$msg = $name . " : " . $formField->getError( );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment