ZF-7836: SubForm elements not aware of all parents. (before render)

Issue Type: Bug Created: 2009-09-12T09:43:52.000+0000 Last Updated: 2012-11-20T20:52:38.000+0000 Status: Closed Fix version(s): Reporter: Gustav Ernberg (gernberg) Assignee: None Tags: - Zend_Form

Related issues: Attachments:


Sample code

<pre class="highlight">
class Test extends Zend_Form{
    function init() {
        $branch = new Zend_Form();
        $branch->addElement("text", "leaf");
        $this->addSubForm($branch, "branch");
        echo $this->getSubForm("branch")->getElement("leaf")->getFullyQualifiedName();

Echos "branch[leaf]" and not expected "tree[branch][leaf]" When the whole form is rendered the getFullyQualifiedName() of the element is (as expected) "tree[branch][leaf]".

Am I missing something here?


Posted by Rob Allen (rob) on 2012-11-20T20:52:38.000+0000

Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".

Feel free to re-open and provide a patch if you want to fix this issue.

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.