| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Environment |
JURI |
setPath |
setPath() |
Never | Work in Progress |
Sets the URI path string.
void setPath ( $path )
| $path | string | is a string containing the new URI path string. |
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