From f717d8820cba2df09b44ba2adfcb85f8bb70197b Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Wed, 16 Feb 2022 16:14:38 +0000 Subject: [PATCH] [Dashboard] If environment is set to development then show the debug toolbar --- application/controllers/Dashboard.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application/controllers/Dashboard.php b/application/controllers/Dashboard.php index 78c21aed..185c7548 100644 --- a/application/controllers/Dashboard.php +++ b/application/controllers/Dashboard.php @@ -4,7 +4,10 @@ class Dashboard extends CI_Controller { public function index() { - + // If environment is set to development then show the debug toolbar + if(ENVIRONMENT == 'development') { + $this->output->enable_profiler(TRUE); + } // Check our version and run any migrations $this->load->library('Migration');