Actions

API16

JURI/current

From Joomla! Documentation

< API16:JURI
Revision as of 17:46, 22 March 2010 by Doxiki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Contents

Description

Returns the URL for the request, minus the query.

[Edit Descripton]

Description:JURI/current

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;
}

[Edit See Also] SeeAlso:JURI/current

Examples

<CodeExamplesForm />