QF with Smarty
| From: | Stephan Wentz | Date: | Fri, 14 Nov 2003 11:21:17 +0000 |
| Subject: | QF with Smarty | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-8922@lists.php.net to get a copy of this message | ||
Hi all!
I'm trying now for 2 hours to get this working, am I missing something?
The goal is to have 3 Radio Buttons, not in a row but placed each on a different location.
<php>
$pic1[] = &HTML_QuickForm::createElement('radio', null, null, 'No Pic', 'no');
$pic1[] = &HTML_QuickForm::createElement('radio', null, null, 'Upload Pic', 'upload');
$pic1[] = &HTML_QuickForm::createElement('radio', null, null, 'Use existing', 'use');
$form->addGroup($pic1, 'pic1', 'Picture 1:');
</php>
Now if I want to output every RadioButton in a Smarty Template, how can i manage to output every Radiobutton-Element directly, not the whole group?
{$form.pic1.html} works of course, but how can i access the radio-element? {$form.pic1.no.html} doesn't work, {$form.pic1.0.html} doesn't work, too.
Can someone help me?
Stephan