QF hierselect
| From: | Stephan Wentz | Date: | Tue, 30 Mar 2004 17:38:43 +0000 |
| Subject: | QF hierselect | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-11531@lists.php.net to get a copy of this message | ||
Hi folks!
I'm using QuickForm with Smarty-Templates, and everything works out really fine.
Now I'm using the hierselect-element for the first time and I have some difficulties with it, maybe someone can help?
I know how to output the elements of a normal group seperated in a template, but somehow i can't get this working for the hierselect-element:
if i have a group "name" with text-elements "firstname" and "lastname" i can do for example:
{$form.name.label}
{$form.name.firstname.html}
{$form.name.lastname.html}
but if i have a hierselect "test" i don't now how to reference them in the template:
{$form.test.label} works
{$form.test.html} works (i have both elements next to each other, and yea, i know, i can choose a seperator, but i need them physically seperated)
{$form.test.0.html} doesn't work
{$form.test[0].html} doesn't work either.
can someone help me?
stephan