Re: QF: setDefaults() weird behaviour
| From: | Alexey Borzov | Date: | Thu, 18 Nov 2004 13:08:03 +0000 |
| Subject: | Re: QF: setDefaults() weird behaviour | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15632@lists.php.net to get a copy of this message | ||
Hi,
toni wrote:
hi, my problem is similar. I get wrong values in a select box. I tried with: $t = new Tema(); $_temas = $t->lista(); $this->addElement('select', 'temas', 'Temas:', $_temas, array('size'=>5,'multiple'=>'multiple')); $tt = $this->getElement ("temas"); $tt->setSelected(array_keys($_temas)); but don't works.$tt =& $this->getElement ("temas");