You are here

public function Request::getPathInfo in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Request.php \Symfony\Component\HttpFoundation\Request::getPathInfo()

Returns the path being requested relative to the executed script.

The path info always starts with a /.

Suppose this request is instantiated from /mysite on localhost:

Return value

string The raw path (i.e. not urldecoded)

2 calls to Request::getPathInfo()
Request::getRelativeUriForPath in vendor/symfony/http-foundation/Request.php
Returns the path as relative reference from the current Request path.
Request::getUri in vendor/symfony/http-foundation/Request.php
Generates a normalized URI (URL) for the Request.

File

vendor/symfony/http-foundation/Request.php, line 883

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

public function getPathInfo() {
  if (null === $this->pathInfo) {
    $this->pathInfo = $this
      ->preparePathInfo();
  }
  return $this->pathInfo;
}