Re: QF: setDefaults() weird behaviour
| From: | Toni | Date: | Fri, 19 Nov 2004 10:27:11 +0000 |
| Subject: | Re: QF: setDefaults() weird behaviour | ||
| References: | 1 2 3 4 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15671@lists.php.net to get a copy of this message | ||
yeah! ;)
But I have the same results as with setDefaults(): the first time I load
the update-page it's ok, but if I submit the form updated and then (...
I visit other pages...) I return to the update-page the values are the
old ones.
Toni.
El jue, 18-11-2004 a las 16:08 +0300, Alexey Borzov escribió:
> 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");
>