5554 Posts in 1742 Topics by 1227 members
|Go to End|
16 May 2009 at 2:20am
is there a way to send a sessionMessage without a form.
It is supposed to be a response to an action.
23 May 2009 at 8:32pm
24 May 2009 at 9:41pm Last edited: 24 May 2009 9:43pm
Thanks for your response,
I was hoping there was something already built in ;-)
Sth like the flash technique in Rails, where a message could be saved in the session and would be shown on the next page.
12 September 2010 at 6:58am Last edited: 12 September 2010 6:59am
I don't know if there's a way already set in SS to do it, but alternatively you can set the variable session in PHP.
$FormInfo = array("NameOfTheFormOrWhatever" => array("formError" => array( "message" => "your message", "type" => "good")) );
Session::set("FormInfo", array_merge( Session::get("FormInfo"), $FormInfo ) );
The array_merge thing is just to not overwrite other form variables in case there were.
I guess you probably new this. But just in case I post it.
|Go to Top|