コード例 #1
0
 public static function register()
 {
     self::$rootPath = realpath(dirname(__FILE__)) . '/';
     spl_autoload_extensions('.php');
     spl_autoload_register(array(__CLASS__, 'autoload'));
 }
コード例 #2
0
 public static function registerSpyc()
 {
     // Spyc autoloader
     require_once self::$libsPath . 'spyc/Autoloader.php';
     Spyc_Autoloader::register();
 }