Re: issue with Callback function
| From: | Christian Weiske | Date: | Thu, 09 Sep 2010 13:02:17 +0000 |
| Subject: | Re: issue with Callback function | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-30730@lists.php.net to get a copy of this message | ||
Hello Daniel,
> I am currently having a bit of issues when using the registerRule
> with the callback function.
>
> When I run
> $this->form->registerRule('checkadmindate1', 'callback',
> 'validate_checkAdminDate1');
>
> I get the following error:
> *Fatal error*: Call to undefined function validate_checkAdminDate1()
Are you sure that the function is
a) not a method (in a class)
b) available (loaded) when the validation is called? Maybe you define
the function after calling validate()
--
Regards/Mit freundlichen Grüßen
Christian Weiske
-=≡ Geeking around in the name of science since 1982 ≡=-
Attachment: [application/pgp-signature] signature.asc
Attachment: [application/pgp-signature] signature.asc