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
I think the best way to do this is by using the flashmessenger namespaces:
/* success message */
$this->_helper->FlashMessenger()->setNamespace('success')->addMessage('Post created!');
/* error message */
$this->_helper->FlashMessenger()->setNamespace('error')->addMessage('You have no permissions');
And then in your layout you can get the messages added to each namespace:
setNamespace('success')->hasMessages()): ?>
setNamespace('error')->hasMessages()): ?>