Hi,
i have at the moment a little problem in my project with the Zend Form
Decorator. I want that the label elements of my forms have no  tag arround,
because I want to display the complete form with other layout .

My Code for that is the following:
foreach ($form->getElements() as $element) {
        $element->getDecorator('label')->setOption('tag', null);
}

But then I got only the following error:
Fatal error: Call to a member function setOption() on a non-object

And that I do not understand, because the return of getDecorator() is an
object from Zend_Form_Decorator_Abstract.

I hope someone can help me ;)

Greets
apollox

--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Zend-Decorator-setOption-Error-tp4495797p4495797.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to