Re: [fw-general] Zend Form: Trying to add a Label Decorator to a DisplayGroup

2009-11-06 Thread umpirsky
Yes, or $this-addDisplayGroup( array( 'e1', 'e2' ), 'name', array( 'displayGroupClass' = 'My_Form_DisplayGroup' ) But I get: Warning:

Re: [fw-general] Zend Form: Trying to add a Label Decorator to a DisplayGroup

2009-11-06 Thread Саша Стаменковић
Ah, wrong decorators - fixed! Regards, Saša Stamenković On Fri, Nov 6, 2009 at 9:20 AM, umpirsky umpir...@gmail.com wrote: Yes, or $this-addDisplayGroup( array( 'e1', 'e2' ), 'name',

Re: [fw-general] Zend Form: Trying to add a Label Decorator to a DisplayGroup

2009-07-27 Thread Tim Fletcher
It took me long time to work out that in order to subclass Zend_Form_DisplayGroup, you must set the class appropriately. If you're creating your form by subclassing Zend_Form you should use : $this-setDefaultDisplayGroupClass('App_Form_DisplayGroup'); -- View this message in context:

Re: [fw-general] Zend Form: Trying to add a Label Decorator to a DisplayGroup

2008-06-25 Thread jkendall
I should have paid more attention to the errors that I was getting. They gave me the road map to extending DisplayGroup properly. By extending Zend_Form_DisplayGroup and including the following methods, I was able to successfully apply a label to a DisplayGroup: public function

[fw-general] Zend Form: Trying to add a Label Decorator to a DisplayGroup

2008-06-24 Thread jkendall
By default, a display group is wrapped in a Fieldset, allowing for a legend at the top of your display group. I have a use case where I'd like to wrap the display group in li tags and add a label at the top: li labelBlah/label DISPLAY GROUP /li Attempting to add a Label element to a