WHat's the best way/code in Login Form (Zend_Form) to display error message 'Login/password incorrect'?
I slowly begin to understand, that setting $this->setErrorMessage('Login/password incorrect') in form/init() is not enough and I somehow have to involve Validators to be able to see the message I set.
To which object should I bind this message and do I have to use validator or not? Thanks!
Update:
LoginAction() code:
$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;