Reputation: 2553
I have created a controller named Sign
and I have run the controller using this link:
http://localhost/ci/index.php/sign .
But it is giving 404 error
.
My controller name is: Sign.php
and below is code:
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Sign extends CI_Controller {
public function __construct()
{
parent::__construct();
}
public function index()
{
echo "1";
}
}
Please help me to find the error.....
Default page is working fine. But if I change $route['default_controller'] = 'Sign';
then also 404 error
Upvotes: 0
Views: 618
Reputation: 101
I experienced same issue and I resolved it calling the controller with the first letter in uppercase, in your case Sign.php
Upvotes: 2
Reputation: 408
You should use following url. Controller names are case sensitive
http://localhost/ci/index.php/Sign
Upvotes: 0