Lithium: How to add html attributes after form validation
<p>I'm using form helper and Validator Util.
After form submission a div with <code>error</code> class appended to the fields were not verified.</p>

<p>How we can add html attributes to this fields too?</p>

<p>generated sample which <code>errorClass</code> added because of field error:</p>

<pre><code>&lt;div class="form-group"&gt;
    &lt;label for="fieldName"&gt;Label text&lt;/label&gt;
    &lt;input type="text" name="fieldName" class="errorClass" max-length="15" id="fieldName"&gt;
    &lt;div class="error"&gt;Error description.&lt;/div&gt;
&lt;/div&gt;
</code></pre>