Re: Problems with QuickForm
| From: | PHP-Junkie | Date: | Wed, 02 Jun 2004 15:46:17 +0000 |
| Subject: | Re: Problems with QuickForm | ||
| References: | 1 2 3 4 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-12835@lists.php.net to get a copy of this message | ||
Sorry to bother you with that dumb error.
----- Original Message -----
From: "Alexey Borzov" <borz_off@cs.msu.su>
To: "PHP-Junkie" <phpjunkie@gmx.de>
Cc: <pear-general@lists.php.net>
Sent: Wednesday, June 02, 2004 5:05 PM
Subject: Re: [PEAR] Problems with QuickForm
> 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);
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>