是否可以在没有重定向的情况下在Symfony 2中显示Flash消息?或者在google群组中编辑另一个
possible solution的核心文件?
//Symfony\Component\HttpFoundation\Session public function setFlash($name,$value,$persist = true) { if (false === $this->started) { $this->start(); } $this->flashes[$name] = $value; if($persist) { unset($this->oldFlashes[$name]); } else { $this->oldFlashes[$name] = $value; } }
UPDATE