Quickform hierselect

From: Date: Fri, 19 Aug 2005 13:53:42 +0000
Subject: Quickform hierselect
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20482@lists.php.net to get a copy of this message
I would like to use QF hierselect with a template of mine. If I understood correctly the source code, hierselect uses default renderer. So, in example, if I use the Array renderer I don't get an array (like expected), but a single elemnt with all the stuff in the 'html' key (even the javascript code!) I tried the example inside the source (the cds stuff): $form =& new HTML_QuickForm('example'); $sel =& $form->addElement('hierselect', 'cds', 'Choose CD:'); $sel->setOptions(array($select1, $select2, $select3)); $r =& new HTML_QuickForm_Renderer_Array; $form->accept($r); print_r($r->toArray()); The result is: Array (
    [frozen] =>
    [javascript] => (Note: empty!)
[snip...]
    [elements] => Array
        (
            [0] => Array
                (
[snip...]
                    [html] =>  (Note: here all the HTML stuff)
                )
        )
) Is there any way I missed to modify this behaviour? -- Massimiliano Arione :: http://garak.it :: * No Word * http://gnu.org/philosophy/no-word-attachments.html * No HTML * http://efn.no/html-bad.html

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