Zend Framework get domain name

There is an easy way to get domain name with Zend Framework – use following code in your view files.

echo $this->serverUrl();
Posted in Zend Framework at June 10th, 2011. No Comments.