autoloader.php 218 B

1234567891011
  1. <?php
  2. spl_autoload_register(function($className) {
  3. $file = $className . '.php';
  4. $file = str_replace('\\', DIRECTORY_SEPARATOR, $file);
  5. if (file_exists($file)) {
  6. include_once $file;
  7. }
  8. });