Update index.php

This commit is contained in:
Namhyeon Go 2017-12-23 03:34:40 +09:00 committed by GitHub
parent 4fc3082d0c
commit 3f971f6ad2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,9 +8,14 @@
// including vendor autoloader
include_once('./vendor/autoload.php');
// system files
include_once('./system/config.php');
include_once('./system/database.php');
// load system files
$load_systems = array('config', 'database', 'uri');
foreach($load_systems as $system_name) {
$system_inc_file = './system/' . $system_name . '.php';
if(file_exists($system_inc_file)) {
include_once($system_inc_file);
}
}
// route controller
$route = '';