Welcome Guest, Not a member yet? Register   Sign In
404 error for controller
#1

[eluser]Wonder Woman[/eluser]
Hi,

I hope someone can help. I have a controller called news and I just want to display the index function page but it throws a 404 error...the edit one works perfectly. I have two other controllers and they both work with the same code...

So if I go to "..admin/news" it doesn't work but if I do "..admin/news/edit/1" it works??

Code:
class News extends CI_Controller {

   function __construct()
   {
      parent::__construct();
      $this->load->model('admin/news_model');
      $this->load->library('form_validation');
      $this->load->library('session');        
   }

   function index()
   {        
      $this->load->view('admin/manage');
   }

   function edit()
   {
      // other code is in here but this works fine
      $this->load->view('admin/edit');
   }    
}

If you could help me out that would be great, thanks.


Messages In This Thread
404 error for controller - by El Forum - 06-01-2011, 03:03 AM
404 error for controller - by El Forum - 06-01-2011, 03:07 AM
404 error for controller - by El Forum - 06-01-2011, 03:08 AM
404 error for controller - by El Forum - 06-01-2011, 03:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB