Re: QFC: hierselect default values ?
| From: | Ignatius Reilly | Date: | Mon, 08 Mar 2004 22:24:39 +0000 |
| Subject: | Re: QFC: hierselect default values ? | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-11167@lists.php.net to get a copy of this message | ||
Thanks! it did the trick.
Cheers
_________________________
"Alexey Borzov" <borz_off@cs.msu.su> wrote in message
news:404CD5AB.2080502@cs.msu.su...
> Hi!
>
> Ignatius Reilly wrote:
> > I fail to apply default values to a hierselect element in a QFC (no
problem
> > with other types of elements, though)
> >
> > A simple test case based on a doc example:
>
> Thanks for not showin' a *complex* one.
>
> ... lots of stuff skipped ...
>
> > $controller->setDefaults( array(
> > "location[0]" => 1,
> > "location[1]" => 2,
> > ) ) ;
>
> Er, have you tried
> $controller->setDefaults(array(
> 'location' => array(1, 2)
> ));