[QF] Hierselect, how to

From: Date: Tue, 23 Mar 2004 04:18:29 +0000
Subject: [QF] Hierselect, how to
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-11448@lists.php.net to get a copy of this message
Hi, I don't really know if it's a bug, a desired behavior from the developers or simply poor code on my behalf but i'll just ask away. I am trying to use an associative array to fill my hierselect (2-selects only). It was working well with the package 3.2.1, when hierselect had only 2 select possible and one used: setMainOptions() and setSecOptions() I updated to 3.2.2 and now i get a warning message in hierselect (line 222 and 223) because my key is not an integer: Use of undefined constant XXX - assumed 'XXX' I am still using the setMainOptions() and setSecOptions() functions instead of setOptions() because the documentation is not very clear. Question: Could the comments in the code include an example of how to use setOptions() as it use to have in hierselect (version 1.5) for setMainOptions() and setSecOptions()? Question: Is the warning message due to me using the deprecated functions? or does hierselect not support associative array? Personnally i believe it would be good if it could. If any of the above requires bug reports, i would be more than happy to fill them. Let me know. Cheers. Eb -- Eric B. Blanchi Email: ebb@unimelb.edu.au

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