I want to get a value from the http_referer in the same/similar way you’d get it from a request:
$this->_getParam('order', 0);
I thought I’d try something like this:
$lastrequest = new Zend_Controller_Request_Http($_SERVER['HTTP_REFERER']);
$lastorder = $lastrequest->getParam('order', 0);
But that doesn’t work. There are no parameters. getParams returns an empty string. What am I missing? Is there a better way to do this?
Thanks!
This is generally a bad idea.
On top of what Justin pointed out, it’s easier to just pass those values on to the new page directly rather than trying to parse them from the referrer.