Hi I'm new to codeigniter. I have installed codeigniter on Ubuntu 14.04 and I'm able to see the welcome page. However other controllers that I create are not working.
I get a message the page not found. I have looked around a lot but could not find anything to fix my issue.
Can anyone kindly help?
class Login extends CI_Controller {
public function __construct() {
parent::__construct();
$this->load->helper('url');
$this->load->library('email');
$this->load->helper('form');
$this->load->library('form_validation');
$this->load->library('session');
$this->load->model('login_model');
}
public function index($msg = NULL) {
$data['msg'] = $msg;
if ($this->session->userdata('validated') == false) {
$this->load->view('templates/header_login');
$this->load->view('login_view', $data);
$this->load->view('templates/footer');
}
else {
redirect('home', 'refresh');
}
}
Routes.php
$route['default_controller'] = 'login';
The default codeigniter page works completely fine. But If I change the default controller with mine then I get a message that page not found