Ejemplo n.º 1
0
 /**
  * Autoload init
  */
 public static function init()
 {
     self::$autoPath = TXApp::$base_root . DS . TXConfig::getConfig('autoPath');
     if (is_readable(self::$autoPath)) {
         self::$loaders = (require self::$autoPath);
     } else {
         self::$isReload = true;
         self::loading();
     }
     if (false === spl_autoload_register(array('TXAutoload', 'load'))) {
         throw new TXException(1004);
     }
 }