Re: splitting grouped element in a Sigma template.
| From: | Alexey Borzov | Date: | Fri, 29 Oct 2004 05:23:29 +0000 |
| Subject: | Re: splitting grouped element in a Sigma template. | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15211@lists.php.net to get a copy of this message | ||
Hi,
Mathieu Jobin wrote:
i'm using an ITStatic render with a Sigma template in a HTML_QuickForm_Page for a controller. and I can't get my radio's to be displayed exactly where I want. $radios[] =& $this->createElement('radio', null, null, "Label 1", "val1"); $radios[] =& $this->createElement('radio', null, null, "Label 2", "val2"); $radios[] =& $this->createElement('radio', null, null, "Label 3", "val3"); $this->addGroup($radios, "radioname", "global label:"); this works great, only one problem, I can't access my element individualy in my template. I output them using {form_radioname_html}, but this will output all of them.Don't group your radios and you'll be able to access them individually via {form_radioname_0_html}, etc. Alternatively, you can open a feature request. But I must admit that the first approach is faster. ;)