zendframework/zf2 — pull request #2257 by bakura10 (2012-08-29 13:28:17+00:00)
Title: Add class to inputs that have error

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..