Hi All,

I'm probably the laziest of you all when it comes to solving this 'problem':

    class FrontendEmailValidator extends  Zend_Validate_EmailAddress {
        public function getMessages() {
            return array("This is not a valid e-mail address.");
        }
    }

Seems like not to much code to me.

Regards,

Bart

Rob Allen schreef:

On 6 Apr 2008, at 15:54, dowker wrote:

Thanks Rob. As in my example above, wouldn't you see the same error message
'[EMAIL PROTECTED] is not a valid email address' 4 times?


Hi dowker,

Looking again, at the extended class we use, I see that I also extended isValid so that there's only ever one error returned.

Regards,

Rob...



--
Bart McLeod
Space Web Internet Team
Middenlaan 47
6865 VN Heveadorp
The Netherlands
t +31(0)26 3392952
m 06 51 51 89 71
@ [EMAIL PROTECTED]
www.spaceweb.nl
zce logo zce PHP 5 logo

Bart McLeod is a Zend Certified Engineer.

Click to verify!

Reply via email to