FlashMessenger Demo
The flash messenger action helper bundled with ZF is particularly useful for instances where you need to pass a message to be displayed on the next request. This is usually needed in Post - Redirect - Get (PRG) patterns where a user posts their form, you process it and redirect them. Zym comes in providing a simple flash messenger view helper which simplifies accessing messages for display.
The flash messenger implementation used in this demo consists of setting the message in the setAction and displaying it from the layout.
You can test it for yourself below by entering a message such as "Invalid option" and clicking the button. The browser will then post to setAction which will redirect back to indexAction where the layout will display the message.