Tue Jun 29 17:48:22 EEST 2010

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

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();