====== setBase ====== {#JAPI Joomla.Framework Document JDocumentHTML::setBase #} Sets the document base URL tag. ===== Syntax ===== void setBase ( **$url** ) | **$url** | string | is a string containing the url to be used in the base tag. | ===== Examples ===== Set the document base URL tag. global $mainframe; $document =& JFactory::getDocument(); $document->setBase( $mainframe->getBaseURL() ); might result in the following base tag in the head block: