From a6d37b550a95c77c1196d297a84655948adbbaf1 Mon Sep 17 00:00:00 2001 From: StanByes <73603926+StanByes@users.noreply.github.com> Date: Wed, 13 Oct 2021 21:02:31 +0200 Subject: [PATCH] Add title for layout code --- Controller/StaffController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Controller/StaffController.php b/Controller/StaffController.php index ddbc8b2..4b06371 100644 --- a/Controller/StaffController.php +++ b/Controller/StaffController.php @@ -4,6 +4,7 @@ class StaffController extends AppController { public function index() { + $this->set('title_for_layout', $this->Lang->get('STAFF__LIST')); $this->loadModel('Staff.StaffListing'); $staffs = $this->StaffListing->get(); @@ -115,4 +116,4 @@ public function admin_delete($id) $this->redirect('/'); } } -} \ No newline at end of file +}