errors() public method

Renders the errors of the given view.
public errors ( Symfony\Component\Form\FormView $view ) : string
$view Symfony\Component\Form\FormView The view to render the errors for
return string The html markup
 /**
  * @param array $params
  * @param Smarty_Internal_Template $smartyTemplate
  * @author Martin Schindler
  * @return string
  */
 public function formErrors(array $params, Smarty_Internal_Template $smartyTemplate)
 {
     return $this->formHelper->errors($params['form']);
 }
Example #2
0
 /**
  * @param $form FormView
  * @param FormHelper $formHelper
  */
 public function context_collection_row($form, $formHelper)
 {
     if ($form->count()) {
         echo $formHelper->label($form);
     }
     echo $formHelper->errors($form);
     echo $formHelper->widget($form);
     echo $formHelper->rest($form);
 }