diff --git a/src/ci2.php b/src/ci2.php index 984a262..80a0373 100644 --- a/src/ci2.php +++ b/src/ci2.php @@ -415,7 +415,7 @@ function exec_controller($class_name, $method = NULL) } $directory = $cinfo['dirname'] != '.' ? ($cinfo['dirname'] . '/') : ''; - $class = strtolower($cinfo['filename']); +   $class = strtolower($cinfo['basename']); if(func_num_args() > 2) { $params = func_get_args();