2009/4/27 Aicos <[email protected]> > I have a Zend_Form I just wonder if there is a quick way of setting up the > default Label decorator so that if displays the Required (*) option for > elements that have been set setRequired(true). Do I need to create a new > instance of Zend_Form_Decorator_Label with the Required(*) option set for > EVERY element separately? >
Personally I have all my forms extends a base Otk_Form class (subclass of Zend_Dojo_Form or Zend_Form as you need) where put all hooks and common configuration for the application. For example you can override addElement() or similar to set the right decorators for element. -- Giorgio Sironi Piccolo Principe & Ossigeno Scripter http://ossigeno.sourceforge.net
