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
|
// including vendor autoloader
|
||||||
include_once('./vendor/autoload.php');
|
include_once('./vendor/autoload.php');
|
||||||
|
|
||||||
// system files
|
// load system files
|
||||||
include_once('./system/config.php');
|
$load_systems = array('config', 'database', 'uri');
|
||||||
include_once('./system/database.php');
|
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 controller
|
||||||
$route = '';
|
$route = '';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user