Zend Framework How To: Creating your own validator for confirm passwords and emails

Filed Under (General) by Wenbert on 14-05-2008

Tagged Under : , ,

Last night I was working on the registration page of my pet-project. I am using Zend_Form for it but I had difficulties creating a validator to confirm 2 fields in the form. I chatted around #zftalk and checked the ZF Documentation but I could not understand anything. I needed a concrete working example.

Today I found this. It has more or less a complete coverage with sample source-code and some explanation.

My “register user” form consists of four elements:

  • Email
  • Confirm email
  • Confirm password
  • Password

Exactly what I was looking for ;)

Subscribe to Rss Feed : Rss