4 public static $loader = false;
5 protected static $classPath = __DIR__;
7 public static function init()
9 if (self::$loader === false)
10 self::$loader = new self();
13 public function __construct()
15 spl_autoload_register(array($this, 'autoload'));
18 protected function autoload($class)
20 $path = self::$classPath . '/' . strtolower($class) . '.class.php';
22 if (is_readable($path))