I would like to create a Zend_Form with nested checkboxes. I'm sure that it's possible, but I don't remember how to do it. This is what it would look like:
[x] Top level checkbox 1
[ ] Sub level 1
[x] Sub level 2
[ ] Top level 2
[ ] Sub level 1
[ ] Sub level 2
How would I achieve this result?
You can use ViewScript Decorator to do this
http://framework.zend.com/manual/en/zend.form.standardDecorators.html#zend.form.standardDecorators.viewScript
An Example
Create _element.phtml in your view script directory.