Page 1 of 1

What's the variable for a site's root URL?

Posted: Mon Dec 17, 2007 2:33 am
by markdarb
This is no doubt quite a silly question, but I haven't been able to find an answer to it.

I'm making a module, and I need the root URL of the Joomla installation. How can get this? I assume it's a variable within a class, but have no idea what it's called.

Re: What's the variable for a site's root URL?

Posted: Mon Dec 17, 2007 2:36 am
by Opie
If using 1.5, try JURI::base().

Re: What's the variable for a site's root URL?

Posted: Mon Dec 17, 2007 2:42 am
by markdarb
Thanks. That was exactly what I needed.  :D