ZF-5866: miscleading variable names for Zend_Form_Element_Multi::addMultiOption()

Issue Type: Docs: Improvement Created: 2009-02-23T11:53:11.000+0000 Last Updated: 2009-10-29T14:03:26.000+0000 Status: Resolved Fix version(s): Reporter: Remy Damour (remy215) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Form

Related issues: - ZF-3964



According to api doc, variable names for Zend_Form_Element_Multi::addMultiOption() are as follow: ```

This is pretty misleading because when generating a element, second function argument ("$value") is not the value of generated nodes, but the text of node, whereas first argument ("$option") is indeed the value of generated nodes.

Example: $element->addMultiOption('choice1', 1) Expected result: choice1_Actual result:_ 1


No comments to display

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.