[eluser]dreamer111[/eluser]
Silly question. here is my contoller, controller_f_blog.php:
Code:
<?php
class Controller_f_blog extends Controller {
function __construct() {
parent::Controller();
}
function Index() {
echo 'index page....';
}
function Comments() {
echo 'comments page.....';
}
}
?>
Here is the sample routing part:
Code:
$route['blog'] = "controller_f_blog";
So. When I enter localhost/ci/blog/comments - I expect function comments to run automatically - right or wrong? because I'm getting 404 errorr.
However - localhost/ci/blog/ runs default index function just fine. Why comments function doesn't work automatically. Should I specify it in config/routes.php? cuz I thought that corresponding method should run by itself. What am I doing wrong?