autoloader.php 192 Bytes
Newer Older
imac's avatar
imac committed
1 2 3 4 5 6 7 8 9 10
<?php

spl_autoload_register(function($class)
{
    $file = __DIR__.'/lib/'.strtr($class, '\\', '/').'.php';
    if (file_exists($file)) {
        require $file;
        return true;
    }
});