FluxBB\Web\Router::getCurrentPath PHP Method

getCurrentPath() public method

public getCurrentPath ( )
    public function getCurrentPath()
    {
        $name = $this->currentRequestName;
        $parameters = $this->currentRequestParameters;
        return $this->getPath($name, $parameters);
    }

Usage Example

Example #1
0
 public function canonical()
 {
     $path = $this->router->getCurrentPath();
     return $this->getUrlToPath($path);
 }