-- umpirsky <[email protected]> wrote
(on Tuesday, 17 November 2009, 10:28 AM -0800):
> I use factory method Zend_Form::addDisplayGroup() to add display group, and
> it works great:
> 
> ...
> )->addDisplayGroup(
>               array(
>                       'el1',
>                       'el2',
> ...
>                       'eln'
>               ),
>               'group1')...
> 
> I want to remove label decorator. Is that possible with factory method or I
> must pass all decorators, or instantiate Zend_Form_DisplayGroup and call
> removeDecorator?

If you use the factory method, you need to indicate the exact set of
decorators you want to use.

You can also call removeDecorator() *after* instantiating the group.

    $group = $form->getDisplayGroup('group1');
    $group->removeDecorator('Label');

-- 
Matthew Weier O'Phinney
Project Lead            | [email protected]
Zend Framework          | http://framework.zend.com/

Reply via email to