JUri::root

      Signature

      protected function root([boolean $pathonly = false, [string $path = null]] )

      Parameters

      $pathonly
      If false, prepend the scheme, host and port information. Default is false.
      $path
      The path

      Returns

      string
      The root URI string.