diff --git a/Controller/BackendController.php b/Controller/BackendController.php index 3de7ee3..db96760 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/ResearchDevelopment/Theme/Backend/rnd-list'); - $view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1002202001, $request, $response)); + $view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1002202001, $request, $response); return $view; } @@ -66,7 +66,7 @@ final class BackendController extends Controller { $view = new View($this->app->l11nManager, $request, $response); $view->setTemplate('/Modules/ResearchDevelopment/Theme/Backend/rnd-create'); - $view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1002202001, $request, $response)); + $view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1002202001, $request, $response); return $view; } diff --git a/Theme/Backend/rnd-create.tpl.php b/Theme/Backend/rnd-create.tpl.php index 041d6f9..8e77f37 100644 --- a/Theme/Backend/rnd-create.tpl.php +++ b/Theme/Backend/rnd-create.tpl.php @@ -12,7 +12,7 @@ */ declare(strict_types=1); -echo $this->getData('nav')->render(); ?> +echo $this->data['nav']->render(); ?>

getHtml('Project'); ?>

diff --git a/Theme/Backend/rnd-list.tpl.php b/Theme/Backend/rnd-list.tpl.php index 3d51582..274b83f 100644 --- a/Theme/Backend/rnd-list.tpl.php +++ b/Theme/Backend/rnd-list.tpl.php @@ -23,7 +23,7 @@ $footerView->setPages(25); $footerView->setPage(1); $footerView->setResults(1); -echo $this->getData('nav')->render(); ?> +echo $this->data['nav']->render(); ?>
@@ -41,9 +41,9 @@ echo $this->getData('nav')->render(); ?> $value) : ++$c; - $url = \phpOMS\Uri\UriFactory::build('{/prefix}checklist/single?{?}&id=' . $value->getId()); ?> + $url = \phpOMS\Uri\UriFactory::build('{/prefix}checklist/single?{?}&id=' . $value->id); ?> - printHtml($value->getId()); ?> + printHtml($value->id); ?> printHtml($value->getName()); ?> printHtml($value->getParent()); ?> printHtml($value->getUnit()); ?>