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