让我们假设这个过滤器:
public function execute ($filterChain)
{
if ($this->isFirstCall())
{
$loggeduser = array();
.
.
.
$this->getContext()->getResponse()->setSlot ('loggeduser', $loggeduser);
}
}
我想将此记录的用户数组传递给每个操作,甚至传递给 ajax 操作。此变量存储记录的用户信息。该get_slot();
功能不起作用。如何解决这个问题?这次一定不能使用会话。