ZF-8704: Undefined method Zend_Form_Decorator_Description::setClass()

Issue Type: Docs: Problem Created: 2010-01-04T09:26:33.000+0000 Last Updated: 2012-05-31T14:28:44.000+0000 Status: Resolved Fix version(s): - 1.12.0 (27/Aug/12)

Reporter: Mixu Kastelen (yellowhat) Assignee: Frank Brückner (frosch) Tags: - Zend_Form

  • FixForZF1.12

Related issues: Attachments: - manual.patch


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)



results in

Fatal error: Call to undefined method Zend_Form_Decorator_Description::setClass()


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

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.