I was thinking something in ZF way. Like something getBaseUrl etc.
For example when you write your urls in the view scripts, you use
<?php echo $this->url(array('controller'=>'user', 'action'=>'login'),
'default', true) ?>I was trying to find if there is something can be added to $this->url to print the domain as well (absolute url). Thanks, On Thu, Oct 15, 2009 at 10:43 PM, Philip G <[email protected]> wrote: > $_SERVER['HTTP_HOST'] > --- > Philip > [email protected] > http://www.gpcentre.net/ > > > On Thu, Oct 15, 2009 at 2:32 PM, scs <[email protected]> wrote: >> >> Hello, >> What is the best way to get the domain on which zend framework project >> runs? >> Not the base url but the domain itself like www.example.com/ ? >> >> Thanks >> scs > >
