Flash values
I got the same problem before and I have simply code a small function like : addflasherror($error) and this function just take the content of the error var in the session and join the new one ( in a array ) but it is a small patch if you think to something else just let me know :)
Posted July 16th, 2007 at 9:09pm by philippe
At first I implemented this way: when redirecting, store errors in 'redirect_errors' variable, then in view merge 'redirect_errors' and 'errors' arrays. But then changed to your approach, thanks.
Posted July 18th, 2007 at 9:21am by telega
It's me again with a strange requirement. I'm storing error messages using $this->flash('errors', $errors) method before making a redirect. Redirect is made to another method of the controller and in this method also an error arises, and I want to display all the errors in my view. Making flash() with a new error mesasge overwrites old errors. What do you think about this?
Posted July 16th, 2007 at 1:45pm by telega