2009年1月6日星期二

Re: [fw-mvc] Request Url

Hi Thunder,
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

没有评论: