ZF-10671: Zend_Dojo_View_Helper_Form passes incorrect $content onto parent constructor

Issue Type: Bug Created: 2010-11-11T11:52:37.000+0000 Last Updated: 2011-04-23T17:14:27.000+0000 Status: Closed Fix version(s): Reporter: Kyle Spraggs (spiffyjr) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Dojo

Related issues: - ZF-5814



Per documentation at…

"If $content is present and not a boolean FALSE, then that content is rendered within the start and close form tags; if $content is a boolean FALSE (the default), only the opening form tag is generated."

This works fine for the standard form view helper but when Dojo is enabled $content is set to '' which prevents only the opening tag from being created. The culprit is in Zend_Dojo_View_Helper_Form.php in function form($id, $attribs = null, $content = false).

<pre class="highlight">
        if (false === $content) {
            $content = '';


Posted by Robert Basic (robertbasic) on 2011-04-23T17:14:27.000+0000

Closing as a duplicate of ZF-5814

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.