zendframework/zf2 — pull request #1544 by bakura10 (2012-06-21 14:51:09+00:00)
Title: Add form row view helper

This is a utility form view helper that renders a very common use case : label (if specified), element and element errors. This is more flexible than a magic view helper that would render the all form, as it allows to add specific markup around every elements.

Basically, it allows to replace this :

get('email');
echo $formLabel->openTag() . $email->getAttribute('label');
echo $this->formInput($email);
echo $this->formElementErrors($email);
echo $formLabel->closeTag();
?>

By this shorter one, making views much more easier to read :

formRow($form->get('email')); ?>