Decorators are called in the order they are registered. setAllowEmpty($flag) and getAllowEmpty() allow you to modify the behaviour of optional elements (i.e., elements where the required flag is FALSE). You may optionally specify a 'tag' option; if provided, it wraps the label in that block-level tag. For more information on how decorators work, please see the section on Zend_Form_Decorator. check over here
Default value: '
Draw some mountain peaks Binary Convolution Why did the best potions master have greasy hair? It's also where that $content argument comes into play: each decorator's render() method is designed to accept content, and then either replace it (usually by wrapping it), prepend to it, or more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed See the Filters section for more information.
Default value: '' markupElementLabelStart: Markup to prepend to element labels. The description is escaped using the view object's escaping mechanisms by default. For example: // render just the element label decorator: echo $element->renderLabel(); // render just the display group fieldset, with some content: echo $group->renderFieldset('fieldset content'); // render just the form Zend Form Display Group To specify an HTML tag with which to wrap the element, either pass a 'tag' option to the decorator, or explicitly call setTag().
We'll look at that in the next section. Set the flag with setAutoInsertNotEmptyValidator($flag) and determine the value with autoInsertNotEmptyValidator(). Depending on the decorator, it may replace the content passed to it, or append or prepend the content. The following loader types are used with the various plugin loader methods: 'validate', 'filter', and 'decorator'.
You can also set many validators at once, using addValidators(). In order to render these elements, they utilize the FormElements decorator, which iterates through all items, calling render() on each and joining them with the registered separator. Zend Form Decorator By default, the generated list of errors has the following markup: