Welcome Guest, Not a member yet? Register   Sign In
Message Library
#1

[eluser]darkhouse[/eluser]
I'm sure most people already have a message library in place, but I just rewrote mine over the weekend and figured I'd share for anyone who's interested.

http://codeigniter.com/wiki/Message/
#2

[eluser]Milos Dakic[/eluser]
I think this is a really nice library. Just one little problem with it is that I don't always want to echo the messages, maybe I need to do more with the message before displaying it. I think just returning the message with the display function is a good idea, therefore the user can do other things and not just echo it.
#3

[eluser]darkhouse[/eluser]
Thanks, I can see your point. Maybe what I'll do is just create another function for that.

Edit: I went ahead and added the function to get an array of messages. You can get all messages, or just messages of a certain type (ie: success, error, etc).

If anyone else has any suggestions, I'm all ears. Thanks.




Theme © iAndrew 2016 - Forum software by © MyBB