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: * http://localhost/mysite returns an empty string * http://localhost/mysite/about returns '/about' * http://localhost/mysite/enco%20ded returns '/enco%20ded' * http://localhost/mysite/about?var=1 returns '/about'
Signature
public function getPathInfo()
Returns
- string
- The raw path (i.e. not urldecoded)