home-school-contact-app/源码/php/AiYaSchoolPush/autoload.php

12 lines
294 B
PHP
Raw Normal View History

2021-10-19 00:18:35 +00:00
<?php
define ( 'MiPush_Root', dirname ( __FILE__ ) . '/' );
function mipushAutoload($classname) {
$parts = explode ( '\\', $classname );
$path = MiPush_Root . implode ( '/', $parts ) . '.php';
if (file_exists ( $path )) {
include ($path);
}
}
spl_autoload_register ( 'mipushAutoload' );