codeguy/Slim — pull request #343 by adamnbowen (2012-07-17 20:53:58+00:00)
Title: Make flash message types be arrays

In a new Slim project, I found need to send several 'info' level messages to the user, but found that `$app->flash('info', 'blah');` only stores the most recent value. I find it more useful if `$flash['info']` is an array.

My specific use-case is sending the messages "Thank you for registering" and "You have successfully Logged in" as "info" level flash messages. I know this breaks the current API/behavior, so you may have objections to the addition.

If you are fine with the change, I'll throw in a test or two, along with documentation changes, and you can merge the request at your leisure. Otherwise, I guess I'll extend `Slim_Middleware_Flash` within my application and change just the one method ;).

Let me know what you think.