classes/Loader.php
public static function register(){
        ini_set('unserialize_callback_func', 'spl_autoload_call');
        spl_autoload_register(function($class){
            $cfile = strtr($class,'_\\','//') . '.php';
            foreach (static::$paths as $path => $v) {
                $file = rtrim($path,'/').'/'.$cfile;
                if(is_file($file)) return include($file);
            }
            return false;
        },false,true);
    }
public static function register(){
        ini_set('unserialize_callback_func', 'spl_autoload_call');
        spl_autoload_register(function($class){
            $cfile = strtr($class,'_\\','//') . '.php';
            foreach (static::$paths as $path => $v) {
                $file = rtrim($path,'/').'/'.$cfile;
                if(is_file($file)) return include($file);
            }
            return false;
        },false,true);
    }
public static function register ( ) { ini_set ( 'unserialize_callback_func' , 'spl_autoload_call' ) ; spl_autoload_register ( function ( $ class ) { $ cfile = strtr ( $ class , '_\\' , '//' ) . '.php' ; foreach ( static :: $ paths as $ path => $ v ) { $ file = rtrim ( $ path , '/' ) . '/' . $ cfile ; if ( is_file ( $ file ) ) return include ( $ file ) ; } return false ; } , false , true ) ; }
Register core autoloader
@return bool Returns false if autoloader failed inclusion
Register core autoloader