Thanks Hector, I think this is what I am looking for :-)
On Thu, Oct 15, 2009 at 11:49 PM, Hector Virgen <[email protected]> wrote: > I think you can use $this->serverUrl(). It creates an absolute URL to a page > within your application. > > -- > Hector > > > On Thu, Oct 15, 2009 at 12:54 PM, scs <[email protected]> wrote: >> >> 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 >> > >> > > >
