Зимние правки. MVC/

Signed-off-by: lopar <lopar.4ever@gmail.com>
This commit is contained in:
lopar
2022-08-09 22:57:43 +03:00
parent 0f62ee20e7
commit b9b4c01cf0
104 changed files with 2254 additions and 2086 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ header("Cache-Control: post-check=0, pre-check=0", false);
*/
spl_autoload_register(function ($className) {
$fileName = __DIR__ . '/classes/' . str_replace('\\', '/', $className . '.php');
$fileName = __DIR__ . '/classes/' . str_replace('\\', DIRECTORY_SEPARATOR, $className . '.php');
if (file_exists($fileName)) {
require_once $fileName;
}