Flash messages #236

Closed
shish opened this Issue Jun 9, 2012 · 2 comments

Projects

None yet

1 participant

@shish
Owner

lots of things don't have an explicit result message - they either work silently, or die horribly. Having a flash message thing could be an improvement.

Personally, I'd implement this by doing set_cookie("shm_flash", "message goes here") on the server side, then layout.class.php can add some code to grab it, insert the message into the page, and delete the cookie.

@shish
Owner

flash_message(str) added in master; now to use it in all the places that make sense... (other people reading this, please comment with suggestions /o/)

@shish
Owner

Actually, a little improvement would be useful: set a type (success / info / error)

@shish shish closed this Aug 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment