diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index 73c3c64..85e0f0c 100755 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -23,7 +23,7 @@ "target": "self", "icon": null, "order": 1, - "from": "Checklists", + "from": "Checklist", "permission": { "permission": 2, "category": null, "element": null }, "parent": 1003601001, "children": [] diff --git a/Controller/BackendController.php b/Controller/BackendController.php index 5e5bd39..f288026 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -92,4 +92,25 @@ final class BackendController extends Controller return $view; } + + /** + * Routing end-point for application behaviour. + * + * @param RequestAbstract $request Request + * @param ResponseAbstract $response Response + * @param mixed $data Generic data + * + * @return RenderableInterface + * + * @since 1.0.0 + * @codeCoverageIgnore + */ + public function viewChecklistTemplateView(RequestAbstract $request, ResponseAbstract $response, mixed $data = null) : RenderableInterface + { + $view = new View($this->app->l11nManager, $request, $response); + $view->setTemplate('/Modules/Checklist/Theme/Backend/checklist-template'); + $view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1003601001, $request, $response); + + return $view; + } }