ZF-2544: Add message type as argument to FlashMessenger.
Description
Currently you can't specify what type of message you're sending with the FlashMessenger in Zend_Controller. It's just a message.
I would like to be able to differentiate the messages I'm sending via FlashMessenger (e.g. error, warning, information, tip, etc.) so users can see more clearly what's going on. Therefore I propose to enhance the addMessage method of the FlashMessenger with an additional argument that allows setting the type of message.
Change: addMessage (string $message, string $namespace)
To: addMessage (string $message, string $message_type, string $namespace)
Comments
Posted by Matthew Weier O'Phinney (matthew) on 2008-02-14T11:04:34.000+0000
This issue duplicates ZF-1705
Posted by Wil Sinclair (wil) on 2008-03-25T20:41:12.000+0000
Please categorize/fix as needed.
Posted by Matthew Weier O'Phinney (matthew) on 2008-04-22T13:39:51.000+0000
Assigning to Ralph to evaluate and schedule.
Posted by Sean P. O. MacCath-Moran (emanaton) on 2009-04-25T20:24:13.000+0000
Greetings All,
FYI, I've created a PriorityMessenger - please check it out and tell me what you think? http://emanaton.com/code/php/zendprioritymessenger
Regards,
Sean P. O. MacCath-Moran www.emanaton.com
Posted by Marc Hodgins (mjh_ca) on 2010-11-26T22:39:33.000+0000
Closing as duplicate of ZF-1705