i am working on styling a project and everybody used Zend_Form and default Elements. This makes it impossible to style submit buttons. Therefore i would like to overwrite the default Zend_Form Decorator for submit buttons, but without changing every line where a Zend_Form is created.
Is that possible? If yes, how?
You probably want to subclass
Zend_Form_Element_Submit
and useloadDefaultDecorators()
to set the default decorators for your submits:The above decorators would result in HTML code looking something like this, allowing you to easily style your submit button: