From 4b0517b9b495f4035a4f2c0cfe04cd54ebcd4368 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Fri, 16 Aug 2024 10:05:59 +0200 Subject: [PATCH] show layout/messages on the dashboard --- application/controllers/Dashboard.php | 3 +++ application/controllers/User.php | 1 - application/views/dashboard/index.php | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/application/controllers/Dashboard.php b/application/controllers/Dashboard.php index a7231554d..8741cbf01 100644 --- a/application/controllers/Dashboard.php +++ b/application/controllers/Dashboard.php @@ -43,6 +43,9 @@ class Dashboard extends CI_Controller $data['qra'] = "none"; } + // We need the form_helper for the layout/messages + $this->load->helper('form'); + $this->load->model('stations'); $this->load->model('setup_model'); diff --git a/application/controllers/User.php b/application/controllers/User.php index a617c6389..3d355b8b4 100644 --- a/application/controllers/User.php +++ b/application/controllers/User.php @@ -865,7 +865,6 @@ class User extends CI_Controller { } else { if($this->user_model->login() == 1) { - $this->session->set_flashdata('notice', __("User logged in")); $this->user_model->update_session($data['user']->user_id); $cookie= array( diff --git a/application/views/dashboard/index.php b/application/views/dashboard/index.php index c426f7352..793456227 100644 --- a/application/views/dashboard/index.php +++ b/application/views/dashboard/index.php @@ -125,8 +125,9 @@ function echo_table_col($row, $name) { - + +load->view('layout/messages'); ?>