filesite
3 years ago
4 changed files with 14 additions and 12 deletions
@ -1,12 +1,13 @@
@@ -1,12 +1,13 @@
|
||||
<?php |
||||
/* All php controller enter from here */ |
||||
require_once __DIR__ . '/../lib/FSC.php'; |
||||
require_once __DIR__ . '/../controller/Controller.php'; |
||||
|
||||
|
||||
//run app |
||||
$start_time = microtime(true); //for time cost |
||||
$config = require_once __DIR__ . '/../conf/app.php'; |
||||
$default_timezone = !empty($config['default_timezone']) ? $config['default_timezone'] : 'Asia/HongKong'; |
||||
date_default_timezone_set($default_timezone); |
||||
$config['start_time'] = $start_time; |
||||
|
||||
require_once __DIR__ . '/../lib/FSC.php'; |
||||
require_once __DIR__ . '/../controller/Controller.php'; |
||||
|
||||
//run app |
||||
FSC::run($config); |
Loading…
Reference in new issue