-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
35 lines (26 loc) · 874 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/**********************************************************************************************
*
* index
*
* define CORRECT_PATH
* include autoload
*
**********************************************************************************************/
define('CORRECT_PATH', "COMPLEX_CORRECT_PATH");
define('ROOT_PATH', dirname(__FILE__));
define('CONFIG_FILEPATH', ROOT_PATH . "/backend/configures/Config.php");
// require config php
require_once(CONFIG_FILEPATH);
// requre vendor autoload php
require_once(PATH_VENDOR . 'autoload.php');
// require common help php
require_once(PATH_HELPS . 'common.help.php');
// require autoload php
require_once(PATH_BACKEND . 'Complex.php');
// register app
Complex::register();
// require router php
require_once(PATH_BACKEND . 'router.php');
// run app
Complex::run();