Quickform an PHP 5.0.4
| From: | Miklós Geyer | Date: | Thu, 18 Aug 2005 15:17:53 +0000 |
| Subject: | Quickform an PHP 5.0.4 | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-20465@lists.php.net to get a copy of this message | ||
Hello,
I migrated to PHP 5.0.4 with an Quickform-Application.
Works fine with one exception:
Warning: Unknown class passed as parameter in /home/www/intranet/php_includes/HTML/QuickForm/select.php on line 447
Here's a snippet how I create the select:
$form->addElement('select','UMFANG_ID','Umfang','',array());
$el =& $form->getElement('UMFANG_ID');
$el->addOption('Bitte auswählen','');
$form->addRule('UMFANG_ID','Bitte \'Umfang\' auswählen!','required');
// Config-Werte ergaenzen:
$el = & $form->getElement('UMFANG_ID');
$el->loadArray($config->UMFANG_VALS);
$config->UMFANG_VALS is an array
I use the latest Quickform release
Any hint would help.. thanks
M. Geyer