From d82bd15c86a5c892488c580560833ca02084b867 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 30 May 2023 15:44:19 +0200 Subject: [PATCH] Continue with getter/setter cleanup --- Controller/BackendController.php | 2 +- Theme/Backend/investment-dashboard.tpl.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Controller/BackendController.php b/Controller/BackendController.php index 48b2bee..07dfcf6 100755 --- 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/InvestmentManagement/Theme/Backend/investment-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/investment-dashboard.tpl.php b/Theme/Backend/investment-dashboard.tpl.php index 059c85f..ece00b6 100755 --- a/Theme/Backend/investment-dashboard.tpl.php +++ b/Theme/Backend/investment-dashboard.tpl.php @@ -12,4 +12,4 @@ */ declare(strict_types=1); -echo $this->getData('nav')->render(); +echo $this->data['nav']->render();