i have a question about using Zend_Form_Decorator_Label,in order to get following result when form element is required i need to get Label-text * and i’m wondering how to achive that in most reusable way?
Is it to write new decorator or to override zend_View_helper_FormLabel ?
Maybe there are other ways to achive that?
Any help will be appreciate.
You can add one of the following options when you create decorator:
Code example:
Or alternatively you can explicitly set suffix/prefix on existing decorator: