Example #1
0
 public static function init()
 {
     self::$lib_dir = realpath(__DIR__) . '/';
     self::$bin_dir = realpath(__DIR__ . '/..') . '/';
     self::$settings_dir = realpath(__DIR__ . '/../settings') . '/';
     spl_autoload_register(__NAMESPACE__ . 'Config::autoload');
 }
Example #2
0
 public static function init()
 {
     date_default_timezone_set('Asia/Shanghai');
     self::$lib_dir = realpath(__DIR__) . '/';
     self::$settings_dir = realpath(__DIR__ . '/../settings') . '/';
     spl_autoload_register(__NAMESPACE__ . 'Config::autoload');
 }
Example #3
0
 public static function init()
 {
     date_default_timezone_set('Asia/Shanghai');
     self::$lib_dir = realpath(__DIR__) . '/';
     self::$bin_dir = realpath(__DIR__ . '/..') . '/';
     self::$settings_dir = realpath(__DIR__ . '/../settings') . '/';
     self::$log_dir = realpath(__DIR__ . '/../bin/log') . '/';
     self::$sqlcode_dir = realpath(__DIR__ . '/../bin/sqlcode') . '/';
     self::$output_txt_dir = realpath(__DIR__ . '/../output') . '/';
     spl_autoload_register(__NAMESPACE__ . 'Config::autoload');
 }