Monday, May 14, 2012

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

in your controller:
echo $this->view->serverUrl();

No comments:

Post a Comment