QuickForm_Controller renderer question
| From: | Charles Kline | Date: | Tue, 20 Sep 2005 22:10:49 +0000 |
| Subject: | QuickForm_Controller renderer question | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-21058@lists.php.net to get a copy of this message | ||
Hi all,
Almost got my forms where I need them. Turns out I have to use QF_Controller to do one of my forms since it is a multi-form deal.
Anyhow, I have been using this kind of code to set the rendering style for a group of items using QuickForm_HTML:
$renderer->setGroupTemplate('<table><tr>{content}</tr></table>', 'regMemberFlag');
$renderer->setGroupElementTemplate('<td class="bodyCopy">{element}<br /><span style="font-size:10px;"><!-- BEGIN required --><span style="color: #f00">* </span><!-- END required --><span style="color:#996;">{label}</span></span></td>', 'regMemberFlag');
Now with QuickForm_Controller, I am not sure how to do this kind of thing and I have not been able to find any examples. In the docs it shows how to set a group template for all groups, but I need a special template for my two checkboxes named regMemberFlag and I just can't get it to work.
Thanks,
Charles