CI controller function is ignored
- by den-javamaniac
Hi. I'm trying to pass through a CI tutorial (writing a simple forum) and I can't make a controller function called. To be more specific I have this in a controller:
function __construct() {
parent::Controller();
$this->load->helper('url');
}
function index() {
$data['title'] = "Wlcome to Gossip";
$data['heading'] = "Welcome to Gossip";
$data['query'] = $this->db->get('topic')->result();
$this->load->view('welcome', $data);
}
function topic() {
echo 'testing...';
}
and when I'm trying to access the /index.php/forum/topic/ uri it just prints out my index() function. Can any one point out what may cause the problem?