mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
Session类增加flash方法用于设置下一次请求有效的值 flush方法用于清空当前请求有效的值 增加push方法
Redirect response类的with方法改为调用session类的flash方法
This commit is contained in:
@@ -53,10 +53,10 @@ class Redirect extends Response
|
||||
{
|
||||
if (is_array($name)) {
|
||||
foreach ($name as $key => $val) {
|
||||
Session::set($key, $val);
|
||||
Session::flash($key, $val);
|
||||
}
|
||||
} else {
|
||||
Session::set($name, $value);
|
||||
Session::flash($name, $value);
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user