Re: ::HTML_QuickForm_Controller->exportValues()

From: Date: Tue, 30 Sep 2003 19:47:19 +0000
Subject: Re: ::HTML_QuickForm_Controller->exportValues()
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-22236@lists.php.net to get a copy of this message
Hi! Markus wrote:
Would be nice to have your opinion about this. Maybe it can be an appropriate suggestion to the HTML_QuickForm_Controller-package team?
My opinion about this is that you should consider using the container() method: http://pear.php.net/manual/en/package.html.html-quickform-controller.html-quickform-controller.container.php
*Problem* If you use the HTML_QuickForm_Controller package to build a multipage-form and want two elements with the same name on two different pages, then the exportValues() method in class HTML_QuickForm_Controller will only be able to return an array with one of the values. This is because the array returned is composed like:
    array('element_name' => 'element_value')
exportValues() was designed to work this way to make the multi-page Controller look like a single-page QuickForm. Thus no desire to "fix" this behaviour. :]

« previous php.pear.dev (#22236) next »