Re: Re: QF SmartyArray with radio buttons
| From: | Jeroen Houben | Date: | Wed, 28 Jan 2004 10:27:00 +0000 |
| Subject: | Re: Re: QF SmartyArray with radio buttons | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-10401@lists.php.net to get a copy of this message | ||
Jeroen Houben wrote:
Bertrand Mansion wrote:I encountered a small problem after adding buttons that don't have names. $control[0] =& HTML_QuickForm::createElement('submit', null, 'Submit'); $control[1] =& HTML_QuickForm::createElement('button', null, 'Cancel',array("onClick"=>"location.href='".$_SERVER['PHP_SELF']."'")); $form->addGroup($control,'control',null,' '); It throws me some notices: *Notice*: Undefined index: keys in */usr/local/share/php/pear/HTML/QuickForm/Renderer/ArraySmarty.php* on line *195* *Notice*: Undefined index: keys in */usr/local/share/php/pear/HTML/QuickForm/Renderer/ArraySmarty.php* on line *222 *When I use names instead of NULL for the button and submit elements it does work. HTH jeroen<jeroen@terena.nl> wrote :It works! I knew I should done some more test :-)Thanks Thomas. I'm sorry I couldn't look at your version of the renderer before, I was very busy at work (still am actually). Anyway, it seems to work beautifully, I think it is more intuitive this way. I do hope your patch will be included in the next release (I actually thought it would be in 3.2.1) because I cannot really allow myself to use CVS versions.Confirm that it works and it will be included :)