Zend Framework get domain name

20.Jan.2011

There is an easy way to get current domain name in Zend Framework. To get domain name in Zend Framework – use following snippet in your view file.

echo $this->serverUrl();