Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /** Misc classes autoloader.
- *
- * @version SVN: $Id: classloader.php 530 2017-04-12 22:33:50Z anrdaemon $
- */
- spl_autoload_register(function($className)
- {
- $file = new SplFileInfo(__DIR__ . strtr("/$className.php", '_', '/'));
- $path = $file->getRealPath();
- if(!empty($path))
- {
- include_once $path;
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement