I want to display my flash messages in my application’s layout file – not sure how to access it though. I set the value in my action.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try my view helper – https://github.com/philBrown/Tolerable/blob/master/library/Tolerable/View/Helper/FlashMessenger.php
This even includes translations if you have them configured.
To display messages from the default namespace, simply use
To set a namespace, provide it as the first argument
The default is to render each message in an unordered list however you can change that by providing a view partial