Thats a waste, you're right! Must do some refactoring, just giving myself some time to think about the problem...maybe overriding creteElement is the right way to go.
Regards, Saša Stamenković On Wed, Jan 27, 2010 at 2:48 PM, darkangel <[email protected]> wrote: > > > umpirsky wrote: > > > > I forgot to add that I have overriden setElementDecorators as well :P > > > > http://pastie.org/796814 > > > > Regards, > > Saša Stamenković > > > Hmm, that's an interesting approach, I didn't think of that. The only thing > which isn't so nice is that once you've called > setDisableLoadDefaultDecorators(true) on the element, you have to specify > all the decorators even if you just want to set escape = false on the Label > decorator (for example). > > Also, loading the Zend defaults (on construction) and then overwriting them > with your own defaults seems a bit of a waste. > -- > View this message in context: > http://n4.nabble.com/How-to-set-the-default-decorators-for-form-elements-tp1290314p1311619.html > Sent from the Zend Framework mailing list archive at Nabble.com. >
