QuickForm_Controller::setDefaults input array structure
| From: | Jeff Schmidt | Date: | Mon, 10 May 2004 18:04:44 +0000 |
| Subject: | QuickForm_Controller::setDefaults input array structure | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-12394@lists.php.net to get a copy of this message | ||
Hello,
Just wondering about the structure of the array that should be passed to QuickForm_Controller::setDefaults(). Specifically, do the variables for each page in the controller get grouped in an array for the page they are defined in?
That is, say I have a page with name 'page1' and a page with name 'page2'. Say page1 has elements el1, el2, el3, and page2 has el4, el5, el6.
To set the defaults, would I pass an array that looks like:
array( 'el1'=>'value1', 'el2'=>'value2', el3=>'value3', 'el4'=>'value4', . . .);
or would I pass an array that looks like
array(
'page1'=>array('el1'=>'value1', . . .),
'page2'=>array('el4'=>'value4', . . .)
);
?
Jeff Schmidt
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc