Actions

JURI/getPath

From Joomla! Documentation

Returns the path part of the URI represented by the JURI object.

Syntax

string getPath()

Example

$uri = 'http://fredbloggs:itsasecret@www.example.com:8080/path/to/Joomla/index.php?task=view&id=32#anchorthis';
$u =& JURI::getInstance( $uri );
echo 'Path is ' . $u->getPath();

would output

Path is /path/to/Joomla/index.php

See also