In 1.5.0RC1 is there a good way to add a decorator when creating a form
with Zend_Config, without clearing the default ones?
for example: I want this this to add a decorator and preserve the
default. Currently, this clears them.
elements.firstname.options.decorators.link.type = "Callback"
elements.firstname.options.decorators.link.options.callback =
"my_decorator_callback_link"
I've attached a patch for Zend/Form/Element.php which I currently use
--- Zend/Form/Element.orig.php 2008-03-07 21:58:28.000000000 +0200
+++ Zend/Form/Element.php 2008-03-07 21:58:48.000000000 +0200
@@ -222,12 +222,12 @@
protected function _loadDefaultDecorators()
{
$decorators = $this->getDecorators();
- if (empty($decorators)) {
+// if (empty($decorators)) {
$this->addDecorator('ViewHelper')
->addDecorator('Errors')
->addDecorator('HtmlTag', array('tag' => 'dd'))
->addDecorator('Label', array('tag' => 'dt'));
- }
+// }
}
/**