Table of Contents

__construct

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

This is the class constructor. You can pass a URI string to the constructor to initialize it to a specific URI.

Syntax

JURI __construct ( $uri )

$uri string is a string containing the URI. This parameter is optional and if omitted defaults to null.

Examples

Example

global $mainframe;
$uri = new JURI( $mainframe->getBaseURL() );