public function root($pathonly = false, $path = null)
	{
		$prefix = $this->toString(array('scheme', 'host', 'port'));

		if (!isset($path))
		{
			$path = rtrim($this->toString(array('path')), '/\\');
		}

		return $pathonly === false ? $prefix . $path . '/' : $path;
	}
public function root($pathonly = false, $path = null)
	{
		$prefix = $this->toString(array('scheme', 'host', 'port'));

		if (!isset($path))
		{
			$path = rtrim($this->toString(array('path')), '/\\');
		}

		return $pathonly === false ? $prefix . $path . '/' : $path;
	}
public function root ( $ pathonly = false , $ path = null ) { $ prefix = $ this -> toString ( array ( 'scheme' , 'host' , 'port' ) ) ; if ( ! isset ( $ path ) ) { $ path = rtrim ( $ this -> toString ( array ( 'path' ) ) , '/\\' ) ; } return $ pathonly === false ? $ prefix . $ path . '/' : $ path ; }
Returns the root URI

@param   boolean  $pathonly  If false, prepend the scheme, host and port information. Default is false.
@param   string   $path      The path
@return  string   The root URI string.
Returns the root URI