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