Steven Szymczak wrote:
> Is there a simple method for obtaining the request URI for any given
> page?  Or does it have to pieced together using getBaseUrl(),
> getControllerName(), getActionName(), and so forth (or just taken from
> $_SERVER['REQUEST_URI'])?
> 
> I've searched the manual and nothing I've come across really seems to do
> the trick.
> 
> Cheers,
> -- Steven

You should be able to get this from the request object
(http://framework.zend.com/apidoc/core/Zend_Controller/Request/Zend_Controller_Request_Http.html#getRequestUri)

So, from an action controller:
$this->getRequest()->getRequestUri();

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to