Table of Contents

getInstance

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Environment Class JURI Method getInstance Reference getInstance() Never Work in Progress

Returns a reference to a global JURI object, only creating it if it doesn’t already exist. This method must be invoked as:

  $uri =& JURI::getInstance();

Syntax

JURI &getInstance ( $uri )

$uri string is a string containing the URI to parse. This parameter is optional and if omitted uses the URI of the script.

Examples

Example

$uri =& JURI::getInstance();