JURI/current
From Joomla! Documentation
< API16:JURI
The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
Contents
Description
Returns the URL for the request, minus the query.
Syntax
static current()
Returns
string
Defined in
libraries/joomla/environment/uri.php
Importing
jimport( 'joomla.environment.uri' );
Source Body
public static function current()
{
static $current;
// Get the current URL.
if (!isset($current))
{
$uri = &JURI::getInstance();
$current = $uri->toString(array('scheme', 'host', 'port', 'path'));
}
return $current;
}