From 48ba33562e8e403cc628608909cb1b9f3ffa1ba1 Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Wed, 3 Aug 2022 09:57:02 +0200 Subject: [PATCH] show current view template in Smarty tab --- Application/Models/Collectors/SmartyCollector.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Application/Models/Collectors/SmartyCollector.php b/Application/Models/Collectors/SmartyCollector.php index f9b010d..2747a37 100644 --- a/Application/Models/Collectors/SmartyCollector.php +++ b/Application/Models/Collectors/SmartyCollector.php @@ -17,6 +17,7 @@ namespace D3\DebugBar\Application\Models\Collectors; use DebugBar\DataCollector\DataCollector; use DebugBar\DataCollector\Renderable; +use OxidEsales\Eshop\Core\Registry; use Smarty; class SmartyCollector extends DataCollector implements Renderable @@ -67,7 +68,7 @@ class SmartyCollector extends DataCollector implements Renderable */ public function collect(): array { - $data = []; + $data = ['current view template' => Registry::getConfig()->getTopActiveView()->getTemplateName()]; $vars = $this->smarty->get_template_vars();