[eluser]cskevinwang[/eluser]
Here is my controller code. It gives me a 404 error when I run it. It works fine if I only change the controller name to Pub or anythine else without "Public" prefixed.
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Publication extends Member_Controller {
function __construct()
{
parent::__construct();
// $this->load->model('publication_model');
}
function index()
{
$data['main_content']='publication/index';
$data['title']='Publication';
$this->load->view('layout/master', $data);
}
}
//end of publication.php