Re: Problems with QuickForm

From: Date: Wed, 02 Jun 2004 15:05:56 +0000
Subject: Re: Problems with QuickForm
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-12832@lists.php.net to get a copy of this message
Hi! PHP-Junkie wrote:
Sorry, now my code and the whole error message Error Message: Fatal error: Call to undefined function: onquickformevent() in c:\Prorgramme\Maguma\apache\htdocs\fs\inc\PEAR\HTML\QuickForm\group.php on line 395 $form->addElement('header','myHeader','Login'); $form->addElement('text', 'user', 'Kundennummer/Benutzername',$class); $form->addElement('password', 'pass', 'Passwort',$class); $test[] = &HTML_QuickForm::createElement('test', 'test', 'TEST', $class);
There is no element of type 'test' in QuickForm unless you added one. Thus QuickForm complains by returning a PEAR_Error object which unsurprisingly does not have onQuickFormEvent() method. Do something like PEAR::setErrorHandling(PEAR_ERROR_DIE); while developing, that'll save quite a bit of time.
$test[] = &HTML_QuickForm::createElement('html', '<b>Just Test</b>'); $form->addGroup($test);


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