Zend Form decorators trouble -
How do I get the following with the form decorator for form elements:
& lt ; Dt & gt; & Lt; Ul & gt; & Lt; Li & gt; Errors & lt; / Li & gt; & Lt; Li & gt; Errors & lt; / Li & gt; & Lt; / Ul & gt; & Lt; Label & gt; Label & lt; / Labels & gt; & Lt; / Dt & gt; & Lt; Dd & gt; & Lt; Input type = "text" value = "input field" & gt; & Lt; / Dd>
In other words, instead of the errors added after the input field, I want them to be ready with the label I do however < Code> & lt; Dt & gt; and & lt; Dd & gt;
to keep the tag as described above.
OK, I came to know how to do this. Slowly decorators begin to understand me:
It does the following:
- Submitting the first label
- then the interval (default)
- Next, add an opening HtmlTag (DD) (default = wrap)
- Next, // make sure that you set $$ - $ form-ElementDecorators ($ decorators) to the relevant elements only after you set them up;
- gt;
PS: < Keep in mind that my special example produces invaliid html. ;-) I only discovered that
elements and
Elements DOCTYPE
HTML 4.01 strict
Comments
Post a Comment