Re: quickform setGroupElementTemplate doesnt seem to be working

From: Date: Tue, 17 Jun 2003 09:32:31 +0000
Subject: Re: quickform setGroupElementTemplate doesnt seem to be working
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-6032@lists.php.net to get a copy of this message
Hi! Richard wrote:
. . $member_reg_form_renderer->setGroupElementTemplate('{label}{element}','RestrictToCompany'); . . doesnt seem to be working.... can anyone suggest something
Please clarify 'doesnt seem to be working' and provide more of your code. This simple test <?php require_once 'HTML/QuickForm.php'; $form =& new HTML_QuickForm(); $name[] =& HTML_QuickForm::createElement('text', 'first', 'First name:'); $name[] =& HTML_QuickForm::createElement('text', 'second', 'Second name:'); $form->addGroup($name, 'theName', 'Enter your name'); $renderer =& HTML_QuickForm::defaultRenderer(); $renderer->setGroupElementTemplate('{label}{element}','theName'); $form->display(); ?> works fine (displaying the elements' labels) with QuickForm 3.0, so I suspect a bug in your code.

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