Is it possible or How can i give a type to a FlashMessage in Zend?
For example
/* This is a \"Success\" message */
$this -> _helper -> FlashMesseng
It is possible. Sample implementation in described in this blog post:
Excerpt:
class AuthController extends Zend_Controller_Action {
function loginAction() {
. . .
if ($this->_request->isPost()) {
$formData = $this->_request->getPost();
if ($this->view->form->isValid($formData)) {
. . .
} else {
$this->view->priorityMessenger('Login failed.', 'error');
}
. . .
}
}