Re: Quickform: how to span two cols with a static element?

From: Date: Tue, 10 Jun 2003 19:32:44 +0000
Subject: Re: Quickform: how to span two cols with a static element?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-5891@lists.php.net to get a copy of this message
Hi! Demian Turner wrote:
I'm using Quickform, v 1.58 2003/02/02
Well, 3.0 package contains revision 1.100 That should give some hints, no? ;]
I have the following line: $this->form->addElement('static', 'note1', $note1); is there any hack i can use to get it to span two cols? ie, so it would cover the label td as well as the <input> td?
It is possible to use a HTML_QuickForm::setElementTemplate() method (as Bertrand already said), but it is deprecated now, so you really should upgrade and use the renderers.
I can't upgrade to 3.x as I already have a lot of code using this version.
*Much* effort was spent to keep the thing backwards compatible. :] The two things that *can* bite you (unless you touched the private API, of course) is that filters are registered no more and that toArray() returns a different structure.

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