references:joomla.framework:environment:juri-sethostsetHost
Sets the URI host. Syntaxvoid setHost ( $host )
ExamplesExample $uri = new JURI( 'http://www.joomla.org?action=help#create' ); echo "Before: " . $uri->toString(); $uri->setHost( 'dev.joomla.org' ); echo "After: " . $uri->toString(); might produce: Result Before: http://www.joomla.org?action=help#create After: http://dev.joomla.org?action=help#create |


