-
Notifications
You must be signed in to change notification settings - Fork 13
/
index.php
36 lines (30 loc) · 999 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
36
<?php
//Routes
define('DIR_ROOT', 'C:/xampp/htdocs/framework_php/');
define('SYSTEM', DIR_ROOT.'system/');
define('MODEL', DIR_ROOT.'site/model/');
define('CONTROLLER', DIR_ROOT.'site/controller/');
define('VIEW', DIR_ROOT.'site/view/');
//Config
require(SYSTEM . "engine/Config.php");
require(SYSTEM . "config/config_data.php");
require(SYSTEM . "config/php_settings.php");
//Engine
require(SYSTEM . 'engine/Url.php');
require(SYSTEM . 'engine/Controller.php');
require(SYSTEM . 'engine/Session.php');
require(SYSTEM . 'engine/SessionHandler.php');
require(SYSTEM . "engine/Output.php");
require(SYSTEM . 'engine/Database.php');
require(SYSTEM . 'engine/Util.php');
require(SYSTEM . 'engine/Errors.php');
require(SYSTEM . 'engine/SecModel.php');
require(SYSTEM . 'engine/SecController.php');
//Startup
require(SYSTEM. "startup.php");
//Controller
$Controller = new Controller();
$Controller->execController();
//Finish script functions
//Session::$handler->close();
//Database::$CONN->close()