Re: QuickForm Question

From: Date: Wed, 25 Feb 2004 14:59:10 +0000
Subject: Re: QuickForm Question
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-10929@lists.php.net to get a copy of this message
Hi! Robert Gehrig wrote:
I also strongly suggest checking the examples that go with QuickForm. They cover most of the package's functionality, including groups.
Thanks, I was wondering about the separator, all the examples of groups in the groups.php example had a single separator.
That's not true: // Creates a checkboxes group using an array of separators $checkbox[] = &HTML_QuickForm::createElement('checkbox', 'A', null, 'A'); $checkbox[] = &HTML_QuickForm::createElement('checkbox', 'B', null, 'B'); $checkbox[] = &HTML_QuickForm::createElement('checkbox', 'C', null, 'C'); $checkbox[] = &HTML_QuickForm::createElement('checkbox', 'D', null, 'D'); $form->addGroup($checkbox, 'ichkABC', 'ABCD:', array('&nbsp;', '<br />'));
What exactly are the rules for an array of separators?
The renderer iterates over the array. If the array is used up, iteration starts from the first element. Once again: consult the example.

« previous php.pear.general (#10929) next »