Aaargh, now I get invalid xhtml. Will override DispalyGroup.

Regards,
Saša Stamenković


On Wed, Nov 18, 2009 at 8:51 AM, Саша Стаменковић <[email protected]>wrote:

> Removing 'DtDdWrapper' did the job.
>
> Regards,
> Saša Stamenković
>
>
>
> On Tue, Nov 17, 2009 at 7:53 PM, Саша Стаменковић <[email protected]>wrote:
>
>> Hehum, after this:
>>
>> ...
>> )->addDisplayGroup(
>>             array(
>>                 'brand',
>>                 'model',
>>                 'year_from',
>>                 'year_to',
>>                 'price_from',
>>                 'price_to',
>>                  'kilometer_from',
>>                 'kilometer_to'
>>             ),
>>             'group1'
>>         )->addElement(
>> ...
>>
>> $this->getDisplayGroup('group1')->removeDecorator('Label');
>>
>> ...
>>
>> in init method of my form which extends Zend_Form, I still have labels on
>> group elements!?!?
>>
>> Regards,
>> Saša Stamenković
>>
>>
>> On Tue, Nov 17, 2009 at 7:33 PM, Matthew Weier O'Phinney <
>> [email protected]> wrote:
>>
>>> -- 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