10 lines
228 B
PHP
10 lines
228 B
PHP
|
<?php
|
||
|
function customAutoloader($className) {
|
||
|
$filePath = __DIR__ . '/' . str_replace('\\', '/', $className) . '.php';
|
||
|
|
||
|
if (file_exists($filePath)) {
|
||
|
include $filePath;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
spl_autoload_register('customAutoloader');
|