Re: QuickForm_Controller renderer question

From: Date: Tue, 20 Sep 2005 22:44:21 +0000
Subject: Re: QuickForm_Controller renderer question
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21059@lists.php.net to get a copy of this message
On 9/20/05, Charles Kline <ckline@rightcode.net> wrote: > 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. > It should be the same as changing the renderer for a normal QF. You can always alter the global default as well. -- Justin Patrin

« previous php.pear.general (#21059) next »