Support Joomla!

references:joomla.framework:environment:juri-setpath

Table of Contents

setPath

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

Sets the URI path string.

Syntax

void setPath ( $path )

$path string is a string containing the new URI path string.

Examples

Example

$uri = new JURI( 'http://forum.joomla.org/index.php/topic,41464.msg227819.html#msg227819' );
echo "Before: " . $uri->toString();
$uri->setPath( '/index.php/board,8.0.html' );
echo "After: " . $uri->toString();

might produce:

Result

Before: http://forum.joomla.org/index.php/topic,41464.msg227819.html#msg227819
After: http://forum.joomla.org/index.php/board,8.0.html#msg227819
 
references/joomla.framework/environment/juri-setpath.txt (758 views) · Last modified: 2007/08/15 14:51