Update index.php
This commit is contained in:
parent
4fc3082d0c
commit
3f971f6ad2
11
index.php
11
index.php
|
@ -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 = '';
|
||||
|
|
Loading…
Reference in New Issue
Block a user