Hi again,

the usage of setElementDecorators() only effects all elements that have
been added to the form before. If I want to use other decorators than
these "defaults" for an element, I can simple add it after the usage of
setElementDecorators() and set the individual decorators.

Now this does not work when I use an Zend_Config_Xml object. I cannot
declare some <elements>, then set the <elementDecorators> values and
afterwards declare other <elements> in the XML file. If I try it, I get
an fatal error:

  Fatal error: Call to a member function getOrder() on a non-object in
  /home/devhost/phpmagazin/form/library/Zend/Form.php on line 824

When I use the <elementDecorators> Options before or after the
<elements> Options then the <elementDecorators> are used for each
element and the individual settings of <decorators> within the <options>
of an element are ignored.

The only solution is to declare all decorators for each element
separately and resign from the usage of <elementDecorators> with an XML
file.

Is it possible to amend Zend_Form to pass an array of elements to
setElementDecorators() so that individual decorator settings for an
element are not overwritten by setElementDecorators()?

Thanks and Best Regards,

Ralf

Reply via email to