*Fatal error*: Call to a member function addDecorator() on a non-object
in...

Regards,
Saša Stamenković


On Tue, Sep 29, 2009 at 4:34 PM, alayn <[email protected]> wrote:

> 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.
>
>

Reply via email to