public static function register() { self::$corePath = realpath(dirname(__FILE__)) . '/'; self::$frameworkPath = self::$corePath . 'framework/'; self::$libsPath = self::$corePath . 'libraries/'; spl_autoload_extensions('.php'); spl_autoload_register(array(__CLASS__, 'autoload')); self::registerSmarty(); self::registerSpyc(); self::registerRandom(); }