Php – Make all form validation errors show up at top in symfony

formsmysqlphppropelsymfony1

I think I may be missing something here that should be relatively common. How can I make all form validation errors, including field-bound errors, show up at the top of the form (global)?

Best Solution

Add something like this at the top of your template:

foreach($form->getWidgetSchema()->getPositions() as $widgetName)
{
  echo $form[$widgetName]->renderError();
}