We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

{$siteUrl} doesn't work, what is the variable to get Base URL in a theme file? | Forum

Aditya
Aditya Jan 21 '13
I thought it points to the URL of the website (not a subpath) but I discovered that this variable does not seem to have any value?


What is the right variable to use to get the base_url of a website like in Drupal? I checked out the controllers but they actually use a get_link() function or some such to generate links to the stylesheets, JS, etc., Help please?

Purusothaman Ramanujam
If using in language strings use {$site_name}

If using in a PHP statment, use OW_URL_HOME