amdp3-metaforums/autoload.php

15 lines
250 B
PHP
Raw Permalink Normal View History

2019-11-17 19:22:25 +00:00
<?php
/*
autoload.php
Contains a simple autoloader function
*/
function mitsumine_autoloader($class) {
$file = str_replace('\\',DIRECTORY_SEPARATOR,$class);
require $file.'.php';
}
spl_autoload_register('mitsumine_autoloader');