Although the FormRow helper is very convenient, it was very hard (in fact, impossible) to style input that have errors (mostly because CSS does not have parent selector).
This PR allows to automatically add a class to every input that have errors (the default class being "input-error"). In order to avoid name clashes, this class can be changed in a helper basis, using the function setInputErrorClass.
I don't think it is necessary to allow to remove this class, as it would add another option and complicates the code for nothing..
Add class to inputs that have error
[#2257] Updated README
- Noted changes to formRow()
This pull request passes (merged 4989b79 into de807ff).