您最多选择25个主题
主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
|
<?php
|
|
spl_autoload_register(function ($class) {
|
|
// Uncomment for debugging
|
|
//echo 'Looking for class ' . $class . "\n";
|
|
|
|
$file = __DIR__ . DIRECTORY_SEPARATOR . str_replace('\\', '/', $class) . '.php';
|
|
|
|
if (file_exists($file)) {
|
|
require($file);
|
|
}
|
|
}); |