Unable to load page - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Unable to load page (/showthread.php?tid=55450) |
Unable to load page - El Forum - 10-26-2012 [eluser]Parahi[/eluser] Hi would I be able to have some understanding with this as I have come across this prob before. The controller is unable to show the page: $this->load->view('login'); it is part of a login page: it shows this error message: An Error Was Encountered Unable to load the requested file: site/login.php and is apart of this function in the controller: public function login_validation() { $this->load->library('form_validation'); $this->form_validation->set_rules('email', 'Email Address', 'trim|required|valid_email|xss_clean|callback_validate_credentials'); $this->form_validation->set_rules('password', 'Password', 'trim|required|md5|alpha_numeric|xss_clean'); if ($this->form_validation->run()) { $this->session->set_userdata($data); redirect('site/members'); } else { //everything is good - process the form write data to database $this->load->view('login'); } } would much appreciate some understanding, thank you Parahi Unable to load page - El Forum - 10-26-2012 [eluser]Parahi[/eluser] I am wondering wether there is something about views I do not understand as it appears alright to me. I am newbie to codeigniter. |