RE: [PEAR] QuickForm persistentFreeze
| From: | LIMBOURG Arnaud | Date: | Wed, 10 Sep 2003 15:28:00 +0000 |
| Subject: | RE: [PEAR] QuickForm persistentFreeze | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-7696@lists.php.net to get a copy of this message | ||
> > I cannot find that it !
>
> It's in element.php.
>
> $element =& $form->addElement(...);
> $element->setPersistantFreeze(true);
>
> > I tried using the static element but i get half of the info
> >
> > $this->addElement('static', $value, 'Value is');
>
> This should be:
>
> $this->addElement('static', 'myElementName', 'Value is');
> (...)
>
> $this->setDefaults(array('myElementName' => 'my value here', ...));
Thanks !
Arnaud.