Re: [fw-general] Re: zf2 - FlashMessenger not rendering messages
unsubscribe
Re: [fw-general] Re: zf2 - FlashMessenger not rendering messages
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 wrote: > On Mon, Jun 24, 2013 at 4:27 PM, tonystamp > 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 > > >
Re: [fw-general] Re: zf2 - FlashMessenger not rendering messages
On Mon, Jun 24, 2013 at 4:27 PM, tonystamp 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
[fw-general] Re: zf2 - FlashMessenger not rendering messages
Agree. So does the redirect controller plugin not constitute another request? -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/zf2-FlashMessenger-not-rendering-messages-tp4660429p4660448.html Sent from the Zend Framework mailing list archive at Nabble.com. -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscribe: fw-general-unsubscr...@lists.zend.com