Search This Blog

Thursday, May 19, 2011

Print all form errors in a symfony form

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


or you can use

$this->form->getErrorSchema();

No comments: