load->model('login'); // Load the data for the login model $data = $this->LoginModel->login($error); // Load the view and add the data $this->load->view('login', $data); } function check(){ // Load the login Model $this->load->model('login'); if ($this->LoginModel->check()){ die("ingelogd"); } else { $this->start(true); } } function _afterAction() { } } ?>