Posts Tagged ‘How to get full url to accessed controller action in Zend php framework’

How to get full url to accessed controller action in Zend php framework

Tuesday, June 29th, 2010

I’ve recently wondered how I can get the full url address of a requested controller/action in Zend php framework.
After some tries I finally did it:

Here is how to achieve it:

$fullUrl = "http://". $this->getRequest()->getHttpHost() . $this->view->url();