From 843c49e137fa90eac45bbf80a69a5ebcdbd52a60 Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Mon, 24 Mar 2025 08:14:18 +0100 Subject: [PATCH] show controller template variables before global --- Application/Component/DebugBarComponent.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/Component/DebugBarComponent.php b/Application/Component/DebugBarComponent.php index cfb6945..d08073c 100644 --- a/Application/Component/DebugBarComponent.php +++ b/Application/Component/DebugBarComponent.php @@ -133,8 +133,8 @@ class DebugBarComponent extends BaseController return new TemplateVariablesCollector( array_merge( - $templateEngine->getGlobals(), - Registry::getConfig()->getActiveView()->getViewData() + Registry::getConfig()->getActiveView()->getViewData(), + $templateEngine->getGlobals() ) ); }