In the controller you can do this:
$this->_helper->FlashMessenger(
array('error' => 'There was a problem with your form submission.')
);
$this->_helper->FlashMessenger(
array('notice' => 'Notice you forgot to input smth.')
);
In the view, you can repeat the notification as follows:
<?php echo $this->flashMessenger('notice'); ?>
And an error like this:
<?php echo $this->flashMessenger('error'); ?>
Edit:
Check this link :
... getMessages() . , ZendSession FlashMessenger. , , ZendSession ( FlashMessenger ), getMessages().
FlashMessenger getCurrentMessages() ( ), , .