Ejemplo n.º 1
0
function __autoload($c)
{
    $class = int . ext . lib . (string) $c;
    if (file_exists($class) && !is_dir($class)) {
        require_once $class;
    } else {
        fn::error("_config.__autoload cannot find class '" . $c . "'", 'There was an error loading a required file.');
    }
}