From 046aa737d77ead3bf8f41a1e4d85d54005b89a58 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 30 May 2023 15:44:15 +0200 Subject: [PATCH] Continue with getter/setter cleanup --- Controller/BackendController.php | 2 +- Theme/Backend/budgeting-dashboard.tpl.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Controller/BackendController.php b/Controller/BackendController.php index eac7e18..6d1162b 100644 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -45,7 +45,7 @@ final class BackendController extends Controller { $view = new View($this->app->l11nManager, $request, $response); $view->setTemplate('/Modules/BudgetManagement/Theme/Backend/budgeting-dashboard'); - $view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1004601001, $request, $response)); + $view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1004601001, $request, $response); return $view; } diff --git a/Theme/Backend/budgeting-dashboard.tpl.php b/Theme/Backend/budgeting-dashboard.tpl.php index f21e2a5..8a644e4 100644 --- a/Theme/Backend/budgeting-dashboard.tpl.php +++ b/Theme/Backend/budgeting-dashboard.tpl.php @@ -12,4 +12,4 @@ */ declare(strict_types=1); -echo $this->getData('nav')->render(); +echo $this->data['nav']->render();