Exemple #1
0
 function __construct()
 {
     self::$path = ROOT_PATH;
     self::$cfg = (include ROOT_PATH . 'config/config.php');
     self::auto_include();
     self::$db = new DB(self::$cfg["connect"]);
     # 偵測是否為手機
     $detect = new Mobile_Detect();
     self::$mobile = $detect->isMobile();
     self::$mobileDir = self::$mobile ? 'mobile/' : '';
     new ROUTER();
     self::permanent();
     ROUTER::class_init();
 }