Perfect, thanks! I'd already extended Zend_Controller_Request_Http, so
I just added this method in to my class:
public function getLocalUri()
{
$uri = $this->getPathInfo();
$query = $this->getQuery();
if (count($query) > 0) {
$uri .= '?' . http_build_query($query);
}
return $uri;
}
Works great. Cheers again,
Jack
没有评论:
发表评论