Welcome Guest, Not a member yet? Register   Sign In
A little help with a function to display a message popup.
#3

[eluser]BrianDHall[/eluser]
I would suggest building your message functions into a library which will itself keep track of messages using sessions. I generally dislike flash data, as I believe it is better to set it normally and then check for its existence and if unneeded kill it, or if used then use it and then kill it.

Then you load your message library, or auto-load it, and refer to it like:

Code:
$this->Message->add_message('login', "Login successful!", 'optional boolean flag - if set will be unset after printing');
//$this->Message->echo_message('login);
$this->Message->echo_messages();


Messages In This Thread
A little help with a function to display a message popup. - by El Forum - 09-21-2009, 08:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB