View Single Post
  #6 (permalink)  
Old 04-01-2008, 03:06 PM
raizyr raizyr is offline
Junior Member
 
Join Date: Mar 2008
Posts: 1
Send a message via AIM to raizyr Send a message via Yahoo to raizyr Send a message via Skype™ to raizyr
Default

for using custom validators I did something like this:

PHP Code:
$password = new Zend_Form_Element_Password('password');
$password->setLabel('Password')
               ->
addValidator(new My_Validate_PasswordConfirmation()); 
The code for My_Validate_PasswordConfirmation is basically the same as kmg's Zend_Validate_CompareToField class above.
Reply With Quote