Removing the unnecessary constructor in the welcome controller. Also added comments in the index method that may help users new to CodeIgniter.
diff --git a/application/controllers/welcome.php b/application/controllers/welcome.php
index 79689f0..4ed6750 100644
--- a/application/controllers/welcome.php
+++ b/application/controllers/welcome.php
@@ -2,12 +2,7 @@
class Welcome extends CI_Controller {
- function __construct()
- {
- parent::__construct();
- }
-
- function index()
+ public function index()
{
$this->load->view('welcome_message');
}