Example #1
0
 public static function initialise($config)
 {
     self::$rootpath = dirname(__DIR__);
     self::$corepath = __DIR__;
     self::$pluginpath = self::$rootpath . DIRECTORY_SEPARATOR . 'plugin';
     self::$gatewaypath = self::$rootpath . DIRECTORY_SEPARATOR . 'gateway';
     self::$templatepath = self::$corepath . DIRECTORY_SEPARATOR . 'template';
     self::$classpath = self::$corepath . DIRECTORY_SEPARATOR . 'class';
     self::$librarypath = self::$corepath . DIRECTORY_SEPARATOR . 'library';
     self::import(self::$corepath . '/class/*');
     self::import(self::$corepath . '/library/*');
     self::import(self::$gatewaypath . '/*');
     self::import(self::$pluginpath . '/*');
     self::$baseurl = $config['site']['path'];
     spl_autoload_register(array(self, 'autoload'));
 }