From 06a4bb4bcb52669204558344432f995a25038e56 Mon Sep 17 00:00:00 2001 From: Andreas Date: Mon, 30 Sep 2019 15:03:47 +0200 Subject: [PATCH] found problem --- dev_mvc/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;