You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
197 B
PHTML
8 lines
197 B
PHTML
7 years ago
|
<?php
|
||
|
spl_autoload_register(function ($class) {
|
||
|
$file = __DIR__ . DIRECTORY_SEPARATOR . str_replace('\\', '/', $class) . '.php';
|
||
|
|
||
|
if (file_exists($file)) {
|
||
|
require($file);
|
||
|
}
|
||
|
});
|