QuickForm2 Static element
| From: | Cedrick Gout | Date: | Fri, 04 Feb 2011 17:21:04 +0000 |
| Subject: | QuickForm2 Static element | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-30946@lists.php.net to get a copy of this message | ||
Im having a question about the static element in the new milestone 0.5.0.
If I'm correct this element allows me to enter static text or HTML in my form..
I tried the following:
$fs = $this->form->addElement('fieldset')->setLabel('Overzicht');
$fs->addElement('static', 'MyStaticElement', 'Shouldn't this show
up?');
This shows an empty fieldset in my browser, and the following line in the source code:
<div class="row"><label for="MyStaticElement-0"
class="element"></label><div
class="element"></div></div></fieldset>
Notice that my text can't be found anywhere in the source code.
Any help or suggestions are greatly appreciated.
Kind regards,
Cedrick