[eluser]MadZad[/eluser]
Concur.
I'll typically have a line like this in my controller:
Code:
$this->data["error_message"] = $this->session->flashdata("error_message");
to get the status message from the session, then pass it to my view:
Code:
if (isset($error_message)) {
echo '<div class="alert_message">' . $error_message . "</div>\n";
}
In the past, I've run into complications when doing redirects - the flashdata wasn't available. In those cases I used a normal session storage (set_userdata) and then done a read-once fetch (write a function that does the read then unset, for convenience).