Allow not to render errors in FormRow #2238

Merged
merged 5 commits into from Aug 28, 2012

Projects

None yet

4 participants

@bakura10
Contributor

Sometimes, you don't want to render errors in form inputs next to those inputs, while still being able to use the FormRow helper.

This PR allows you to set the renderErrors to false, and hence the label and element will still be rendered, but not the errors.

EDIT : this PR also slightly modify the markup generated by FormRow view helper (this is not a BC though).

Before :

Text<input ...>

After :

Text<input ...>

This is necessary to be able to style the text label (for instance to apply it a width, a margin...), otherwise without this, it's impossible to target it using CSS.

@travisbot

This pull request passes (merged 3680c12 into 4c6769a).

@travisbot

This pull request passes (merged c8d66c4 into 7abc7f2).

@weierophinney weierophinney added a commit that referenced this pull request Aug 28, 2012
@weierophinney weierophinney [#2238] updated README.md
- Provided info on renderErrors flag
be0b42d
@weierophinney weierophinney merged commit c8d66c4 into zendframework:master Aug 28, 2012

1 check passed

default The Travis build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment