Re: QuickForm_Controller and Smarty, session error

From: Date: Thu, 24 Jun 2004 18:10:27 +0000
Subject: Re: QuickForm_Controller and Smarty, session error
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13315@lists.php.net to get a copy of this message
Trevan Devaun Richins wrote: >This is how I build my radio buttons. I use an external array that has >the information of the radios (in $element_data). Then, I just loop >through it and place it in a group. > >$element_data['enabled'] = 'enabled'; >$element_data['disabled'] = 'disabled'; >$element_data['radio_group']['locked'] = 'locked'; > >foreach($element_data['radio_group'] as $radio_value) { >$radio_button[] = >HTML_QuickForm::createElement('radio',null,null,null,$radio_value,null); >} >return >HTML_QuickForm::createElement('group',$radio_button,'status',null,''); Try: $radio_button[] =& HTML_QuickForm::createElement('radio',null,null,$radio_value,$radio_value); Use an ampersand in front of your function name as well in order to keep the reference to the created elements/groups. Bertrand Mansion Mamasam

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