code: public function currentPath()
      {
          $request = preg_replace('!' . $this->uri . '(.*)$!i', '$1', $_SERVER['REQUEST_URI']);
          if (defined('MOD_REWRITE') and MOD_REWRITE === true) {
              if (substr($request, -1) != '/') {
                  $request .= '/';
              }
  
              $parseUrl = $this->parseUrl($request);
              $gets = $parseUrl['sVars'];
          } else {
              $gets = $_SERVER['QUERY_STRING'];
          }
  
          return $gets;
      }
docs: Return Current path
  
  @return string