$url = JUri::base() . 'contact-us'; echo 'Contact Us';
$base_url = JUri::base(); echo $base_url;This code retrieves the base URL of the website and prints it to the screen using the echo function. The resulting output will be the base URL of the website, without any additional path or query parameters. The JUri base function is part of the Joomla! Platform library, which is a collection of reusable code modules for building web applications. It is specifically part of the JUri class, which provides methods for manipulating and constructing URLs.