Hi Tony and Matthew,
you can also access "current" messages - the messages set in the current
request.
We usually implement it the way that we merge current messages with
messages from previous request (session) and display them. You need to
clearCurrentMessages once you use them otherwise they appear again in next
request.
This should be working:
https://github.com/kapitchi/KapitchiShowcaseApplication/blob/master/module/KapBootstrapTheme/view/layout/partial/user-messages.phtml

Matus


On 25 June 2013 04:59, Matthew Weier O'Phinney <matt...@zend.com> wrote:

> On Mon, Jun 24, 2013 at 4:27 PM, tonystamp <tonyst...@hotmail.co.uk>
> wrote:
> > Agree. So does the redirect controller plugin not constitute another
> request?
>
> Only if you return and send the response immediately. If you're still
> returning a view model/array from your controller, you'll run into
> issues. It's only on the next request, to the page you're redirected
> to, that the messages you put in the FlashMessenger will be
> accessible.
>
>
> --
> Matthew Weier O'Phinney
> Project Lead            | matt...@zend.com
> Zend Framework          | http://framework.zend.com/
> PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc
>
> --
> List: fw-general@lists.zend.com
> Info: http://framework.zend.com/archives
> Unsubscribe: fw-general-unsubscr...@lists.zend.com
>
>
>

Reply via email to