News for hackers. Stuff that matters.
Re:PHP Tips and Tricks - Codular by nodesocket on Sunday July 29, 2012 @09:03PM (#4310406)
Indeed, slightly cleaner I suppose:

    spl_autoload_register(function($class_name) {
        require(dirname(__DIR__) . "/classes/" . $class_name . ".php");
    });

There are no comments on this comment yet.