Re: QuickForm error
| From: | Justin Patrin | Date: | Wed, 12 Jul 2006 15:04:01 +0000 |
| Subject: | Re: QuickForm error | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-24625@lists.php.net to get a copy of this message | ||
On 7/12/06, Köteles Zoltán <zkoteles@dolphinet.hu> wrote:
Hello, I always got an error: Fatal error: [] operator not supported for strings in /usr/home/web/devel/admin/groups.php on line 63 and here's the code: require_once 'HTML/QuickForm.php'; require_once 'HTML/QuickForm/Renderer/ArraySmarty.php'; $form =& new HTML_QuickForm('frm_groups', 'post', 'admin.php?p=groups'); $form->addElement('header', $strAdminGroupsHeader); $deleted[] = &HTML_QuickForm::createElement('radio', null, null, $strAdminGroupsYes, '1'); <- this is the line 63 $deleted[] = &HTML_QuickForm::createElement('radio', null, null, $strAdminGroupsNo, '0'); $form->addGroup($deleted, 'deleted', $strAdminGroupsDeleted); What's the problem with this?What version of PHP are you using? Is it above the minimum requirement for HTML_QuickForm? -- Justin Patrin