« Return to Thread: Setting custom decorator configuration for one form element - Zend_Form

Setting custom decorator configuration for one form element - Zend_Form

by Cristian Bichis-3 :: Rate this Message:

Reply to Author | View in Thread

Hello,

While i am rendering a form i am trying to make one of the (custom) form elements to render with just some of decorators, not for all.

I added some things like this on element constructor:

        $this->removeDecorator('Label');
        $this->removeDecorator('HtmlTag');
  
        $this->setDecorators(array('ViewHelper'));

But however, i didn't get any results, element is rendered using default decorators, as for all form elements.

Any idea how to do this ?

Cristian

 « Return to Thread: Setting custom decorator configuration for one form element - Zend_Form

LightInTheBox - Buy quality products at wholesale price