[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.