In case of IndexController, we name the file as IndexController.php, which defines this as the index controller.
Inside the file, we name the controller class IndexController, which matches the filename.
The matching of the filename and class name is very important.
If we don't do this, then it will cause the Front Controller to throw a not found exception.
answered May 28 '11 at 01:17