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

コード例 #1
0
ファイル: UrlGenerator.php プロジェクト: fluxbb/core
 public function canonical()
 {
     $path = $this->router->getCurrentPath();
     return $this->getUrlToPath($path);
 }