在本地主机上运行 ZF + xampp(我是新手)..
我有这个代码:
$url = $this->getRequest()->getRequestUri();
...
$session->requestURL = $url;
& var_dump 显示 $url=
/kakool/public/admin/catalog/item/update/1
但后来,在这段代码中:
if (isset($session->requestURL)) {
$url = $session->requestURL; }
# again, var_dump shows $url=/kakool/public/admin/catalog/item/update/1
$this->_redirect($url);
它重定向到这个网址:
/kakool/public/kakool/public/admin/catalog/item/update/1
烦人...有人有什么想法吗?