1,在symfony 1.0.17中获取HTTP_REFERER

时间:2014-07-21 17:54:51

标签: symfony1 action referer

我尝试在action.class.php

中获得referer
public function executeIndex()
  {
    $this->setTemplate('index');
    $this->referer = $this->getRequest()->getReferer();
  }

但没有任何结果:(现在有人如何解决这个问题?

symfony版本1.0.17

0 个答案:

没有答案