Re: QuickForm persistentFreeze

From: Date: Wed, 10 Sep 2003 14:57:33 +0000
Subject: Re: QuickForm persistentFreeze
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-7695@lists.php.net to get a copy of this message
<arnaud.limbourg.prestataire@cegetel.fr> wrote : > This was meant to go to the list, stupid outlook didn't see it that way. > >>> I'ld like to freeze an element but not have the input >> hidden element in such >>> case. I saw the privete member _persistentFreeze but as >> usual i don't think >>> fiddling with anything private is a good idea. >> >> There is a public setPersistantFreeze() method, though. ;] > > 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', ...)); Bertrand Mansion Mamasam

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