First commit
This commit is contained in:
11
app/Common/extend/tenxunyunimage/autoload.php
Executable file
11
app/Common/extend/tenxunyunimage/autoload.php
Executable file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
function classLoader1($class)
|
||||
{
|
||||
$path = str_replace('\\', DIRECTORY_SEPARATOR, $class);
|
||||
$file = __DIR__ . DIRECTORY_SEPARATOR . $path . '.php';
|
||||
if (file_exists($file)) {
|
||||
require_once $file;
|
||||
}
|
||||
}
|
||||
spl_autoload_register('classLoader1');
|
||||
Reference in New Issue
Block a user