Hata mesajı 'hatalı Giriş / şifre' gösterilecek Giriş Formu (Zend_Form) en iyi yolu / kodu nedir?
Ben yavaş yavaş form / init bu ayarı $ this-> setErrorMessage ('Giriş / şifre yanlış'), anlamaya başlar () yeterli değil ve ben nedense set mesajı görmek mümkün Doğrulayıcıları içermelidir.
To which object should I bind this message and do I have to use validator or not? Thanks!
Güncelleme:
LoginAction () kodu:
$auth  = Zend_Auth::getInstance();
$authAdapter =
$this->_getAuthAdapter($formData['userName'],$formData['password']);
$result = $auth->authenticate($authAdapter);
if (!$result->isValid()) {
    //Problem: the line below doesn't display error message
    $form->addError('Username or password do not exist'); 
    $form->populate($formData);
    $this->view->form = $form;
 
			