Zend_Form_Decorator_Fieldset for individual elements

If you want to include a <fieldset> in your Zend_Form, you might try the Zend_Form_Decorator_Fieldset decorator. But it’s not apparent that this decorator is meant for the form and not the individual elements in it. Instead, here’s a custom decorator to render your Zend_Form_Element with a <fieldset>.

I use this decorator to implement the form design at http://pea.rs/forms/top-labels.

Leave a Reply

Your email address will not be published.