From 4c3a4d353d8e18abcaba80110cb309b758520878 Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Fri, 11 Aug 2023 10:23:22 +0200 Subject: [PATCH] chg: [navigation:noticelists] Added update route and update action --- .../Component/Navigation/Noticelists.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Controller/Component/Navigation/Noticelists.php b/src/Controller/Component/Navigation/Noticelists.php index 0673ca351..58c82a752 100644 --- a/src/Controller/Component/Navigation/Noticelists.php +++ b/src/Controller/Component/Navigation/Noticelists.php @@ -5,4 +5,18 @@ require_once(APP . 'Controller' . DS . 'Component' . DS . 'Navigation' . DS . 'b class NoticelistsNavigation extends BaseNavigation { + function addRoutes() + { + $this->bcf->addRoute('Noticelists', 'update', [ + 'label' => __('Update Noticelists'), + 'url' => '/noticelists/update', + 'icon' => 'circle-up', + 'isPOST' => true, + ]); + } + + public function addActions() + { + $this->bcf->addAction('Noticelists', 'index', 'Noticelists', 'update'); + } }