Reputation: 41
I am using OS Ubuntu. I am creating the application on codeigniter and facing problem while I am running my code. Only default controller is working, other then that are not working and application through the error:
404 Page Not Found
The page you requested was not found.
Code: Controller Name: Test
defined('BASEPATH') OR exit('No direct script access allowed'); class Test extends CI_Controller { public function index() { echo "Hi this is Test Controller"; } }
Upvotes: 0
Views: 810
Reputation: 7134
There may be many reason where CI can display 404 Page Not Found
.
As example
Test.php
not test.php
. Note:
Try to use your link http://your_site_base_url/index.php/test
if it does not work means you have any of those problem.
Upvotes: 1