Update index.php

This commit is contained in:
Namhyeon Go 2018-02-09 20:21:46 +09:00 committed by GitHub
parent f323fdbde0
commit 1a1b6209c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@
* @file index.php
* @date 2017-12-18
* @author Go Namhyeon <gnh1201@gmail.com>
* @brief VerySimplePHPFramework
* @brief ReasonablePHPFramework
* @cvs http://github.com/gnh1201/verysimplephpframework
*/
@ -29,6 +29,9 @@ foreach($load_systems as $system_name) {
$default_timezone = array_key_empty("timezone", $config) ? $config['timezone'] : "UTC";
date_default_timezone_set($default_timezone);
// start session (enable $_SESSON)
session_start();
// route controller
$route = '';
if(array_key_exists('route', $_REQUEST)) {