Ah, wrong decorators - fixed!
Regards,
Saša Stamenković
On Fri, Nov 6, 2009 at 9:20 AM, umpirsky wrote:
>
> Yes, or
>
> $this->addDisplayGroup(
>array(
>'e1',
>'e2'
>),
>'name',
>arr
Yes, or
$this->addDisplayGroup(
array(
'e1',
'e2'
),
'name',
array(
'displayGroupClass' => 'My_Form_DisplayGroup'
)
But I get:
Warning: Excepti
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:
http://w
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 setLabel($labe
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:
Blah
DISPLAY GROUP
Attempting to add a Label element to a display group re