Re: Adding a subgroup to a group?
| From: | Seth Price | Date: | Thu, 15 Dec 2005 13:43:30 +0000 |
| Subject: | Re: Adding a subgroup to a group? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-22257@lists.php.net to get a copy of this message | ||
Short answer: No.
Long answer: Well, I just happened to have this problem yesterday, and I've been working on adding support for sub-groups. I'll contribute changes back if there are people interested, but so far they contain changes for other things too, like the chars "[]" aren't allowed in the id or name attributes so I've replaced them with ":".
~Seth
On Dec 14, 2005, at 2:23 PM, James Carr wrote:
I am building a very complex multi page form and I am curious if there is some kind of way to add a group to a group? Basically, I have 4 subsections that are exactly identical and would like to put this in a foreach loop (I am using smarty for rendering). It would be ideal if I could just add the elements to a group, then add it to another. Basically something like this would be an input name (using the normal php convention for form fields being converted to array index): name="asset[0][type]" so I could just do something like: {foreach from=$assets item=asset} {$asset.name.label}{$asset.name.html}<br/> {$asset.type.label}{$asset.type.html}<br/> .. and so on ... {/foreach} At worst, I'll just copy&paste for now. :( Thanks, JC -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php