DECORATING THE SUBMIT BUTTON IMAGE We only have a single submit button so we decorate it when we create it. In the default case, this will mean minus the 'Zend_Filter_' prefix. Can you point me to the "error code" decorators? Ah, well the original question wasn't in that format. http://lostsyntax.net/zend-form/zend-decorators-error.html
If you do not want this behavior, you can turn it off by passing a FALSE value to setAutoInsertNotEmptyValidator($flag); this will prevent isValid() from placing the 'NotEmpty' validator in the validator For example, I'm trying to get the error html to look like: ------
...validate error here...
...another error here...
I am also aware that there are alternate approaches and some may be more clever than mine. In the default case, this will mean minus the 'Zend_Validate_' prefix.
Zend Form Decorator
Finally, the last decorator, 'label', retrieves the element's label and passes it to the 'FormLabel' view helper, wrapping it in an HTML
tag; the value is prepended to the content For instance, if you want to provide a different implementation of the 'Label' decorator -- for instance, to always append a colon -- you could create your own 'Label' decorator with setAttribs method is used to set form field attributes like class, style, title etc. 5. After creating the field, you can assign properties to it.
Remember the individual input errors are preserved and each is set to display "*". too many to list (css helpers, resource loading, etc.). As an example, consider a standard registration form that has fields for both password and a password confirmation; one validation would be that the two fields match. Zend Decorator Placement When the first decorator is called, this string is typically empty, while on subsequent calls it will be populated.
I choose to decorate the form in stages. i think this LINK would be very useful to you to make things working at your end. I haven't encountered a structure I couldn't resolve with decorators and zend forms.