»
S
I
D
E
B
A
R
«
Zend Form add error message
November 7th, 2009 by wood

Hi I did register form in with zend form

$password = new Zend_Form_Element_Password('password');
$password->setLabel($this->_translate->_("Password:"))
    ->setRequired(true)
    ->addValidator('stringLength', true, array(4, 32));

$confirmPassword = new Zend_Form_Element_Password('confirmpassword');
$confirmPassword->setLabel($this->_translate->_("Confirm Password:"))
    					->setRequired(true);

I control password and confirmpassword in controller. if password and confirmpassword don't match then add error message under confirmpassword textbox. how i do?


Leave a Reply

»  Substance: PHP Frameworks   »  SiteMap