2012-05-24 10 views

risposta

9

Da un metodo di controllo:

$this->getRequest()->getServer('HTTP_REFERER') 

fondamentalmente la stessa utilizzando $ _SERVER, ma senza causare problemi in unit test.

1

Se si vuole fare in Module.php?

devo trovare un piccolo soluzione

$ headers = new Zend \ Http \ PhpEnvironment \ Richiesta \;

$ headers-> getServer ('HTTP_REFERER')