ZF-8704: Undefined method Zend_Form_Decorator_Description::setClass()
Description
This feature mentioned in the manual seems to be missing:
You may additionally specify a class for the tag using the class option or by calling setClass(); by default, the class 'hint' is used. (23.7.3. Zend_Form_Decorator_Description)
Calling
$form->getDecorator("Description")->setClass('success');
results in
Fatal error: Call to undefined method Zend_Form_Decorator_Description::setClass()
Comments
Posted by Christian Albrecht (alab) on 2010-03-16T02:38:09.000+0000
You are right, that is written in the manual, however the method is missing. What works is $form->getDecorator("Description")->setOption('class','success'); My opinion is, that it is more economical to update the Documentation.
Posted by Christian Albrecht (alab) on 2010-04-05T10:32:11.000+0000
Revert Comment, there is an other issue as well, so ...
Posted by Frank Brückner (frosch) on 2012-05-11T14:53:23.000+0000
Patch added. (includes En and De)
Posted by Adam Lundrigan (adamlundrigan) on 2012-05-31T14:28:44.000+0000
Fixed in trunk (1.12.0): r24841