Have you tried with something like:
$form->setElementDecorators(
.
.
.
);
$form->third_element_name->setDecorators(
.
.
.
);
I think it should work...
El mar, 29-09-2009 a las 06:46 -0700, umpirsky escribió:
> Hi.
>
> I'm trying to do the following thing.
>
> I have some form, and I'm putting elements on it one by one, when I finish,
> I call setElementDecorators() to customize rendering. That works perfect,
> but now I want to add decorator to 3rd element, but setElementDecorators()
> owerwrites them, if I call setElementDecorators before adding elements, it
> takes no effect!
>
> How can I achieve this without setting decorators for each element one by
> one?
>
> Regards,
> Sasa Stamenkovic.