Zend Framework: Flash Messenger, add a message from the model
- by Dan
Any idea on how best to add a message to flash messenger from the model?
As FlashMessenger is an action helper, this seems not to be possible, so the obvious solution is to create an internal message object in the model, and return that to the controller from where you can use addMessage(). But if you want to return something else as well, this falls down.
Another idea is an additional session namespace for these internal messages, which is then merged in with the Flash Messenger namespace messages at output time?
Anyone have any thoughts or experience on this? Cheers.