To get around this issue, normally most people add the ‘_model’ suffix to the Model class names
I think it is better to add a suffix to the Controllers instead, since they are almost never referenced by their class names in your code.
First we need to extend the Router class.
Create this file: “application/libraries/MY_Router.php”
class MY_Router extends CI_Router {
var $suffix = '_controller';
function __construct() {
parent::CI_Router();
}
function set_class($class) {
$this->class = $class . $this->suffix;
}
function controller_name() {
if (strstr($this->class, $this->suffix)) {
return str_replace($this->suffix, '', $this->class);
}
else {
return $this->class;
}
}
}
Now edit “system/codeigniter/CodeIgniter.php”
line 153:
if ( ! file_exists(APPPATH.'controllers/'.$RTR->fetch_directory().$RTR->controller_name().EXT))
line 158:
include(APPPATH.'controllers/'.$RTR->fetch_directory().$RTR->controller_name().EXT);
Next, edit: “system/libraries/Profiler.php”, line 323:
$output .= "
<div style="color:#995300;font-weight:normal;padding:4px 0 4px 0">".$this->CI->router->controller_name()."/".$this->CI->router->fetch_method()."</div>";
Source