diff --git a/dev_mvc/index.php b/dev_mvc/index.php index 0740a85..2029cd7 100644 --- a/dev_mvc/index.php +++ b/dev_mvc/index.php @@ -10,7 +10,7 @@ function autoload($className){ $className = substr($className, $lastNsPos + 1); $fileName = str_replace('\\', DIRECTORY_SEPARATOR, $namespace) . DIRECTORY_SEPARATOR; } - $fileName .= str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php'; + $fileName .= $className . '.php'; //echo $fileName; require ROOT_DIR . '/' . $fileName;