diff --git a/src/Bridges/ApplicationTracy/RoutingPanel.php b/src/Bridges/ApplicationTracy/RoutingPanel.php index 6cc800500..1896aed28 100644 --- a/src/Bridges/ApplicationTracy/RoutingPanel.php +++ b/src/Bridges/ApplicationTracy/RoutingPanel.php @@ -67,6 +67,7 @@ public function getTab() { $this->analyse($this->router); ob_start(); + $request = $this->request; require __DIR__ . '/templates/RoutingPanel.tab.phtml'; return ob_get_clean(); } @@ -79,6 +80,10 @@ public function getTab() public function getPanel() { ob_start(); + $request = $this->request; + $routers = $this->routers; + $source = $this->source; + $url = $this->httpRequest->getUrl(); require __DIR__ . '/templates/RoutingPanel.panel.phtml'; return ob_get_clean(); } diff --git a/src/Bridges/ApplicationTracy/templates/RoutingPanel.panel.phtml b/src/Bridges/ApplicationTracy/templates/RoutingPanel.panel.phtml index 59cf40d9e..2293b5cfb 100644 --- a/src/Bridges/ApplicationTracy/templates/RoutingPanel.panel.phtml +++ b/src/Bridges/ApplicationTracy/templates/RoutingPanel.panel.phtml @@ -34,17 +34,17 @@ use Nette,
httpRequest->getUrl()) ?>
No routers defined.
@@ -61,7 +61,7 @@ use Nette, - routers as $router): ?> +source ?> in source->getFileName(), $this->source->getStartLine()) ?>
+in getFileName(), $source->getStartLine()) ?>
diff --git a/src/Bridges/ApplicationTracy/templates/RoutingPanel.tab.phtml b/src/Bridges/ApplicationTracy/templates/RoutingPanel.tab.phtml index 4fc75a356..b4fb8f5c6 100644 --- a/src/Bridges/ApplicationTracy/templates/RoutingPanel.tab.phtml +++ b/src/Bridges/ApplicationTracy/templates/RoutingPanel.tab.phtml @@ -7,4 +7,4 @@ use Nette, ?>