-
Notifications
You must be signed in to change notification settings - Fork 101
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·57 lines (41 loc) · 2.18 KB
/
index.php
File metadata and controls
executable file
·57 lines (41 loc) · 2.18 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
ob_start();
/*
+--------------------------------------------------------------------+
+ +
+ Start Collecting Output Buffering. +
+ Just as a side kick for headers. +
+ +
+--------------------------------------------------------------------+
*/
/*
+--------------------------------------------------------------------+
+ +
+ init.php contains defines basic BASE_DIR and URL(s). +
+ It also imports: +
+ config/constants.php +
+ config/autoloader.php +
+ config/routes.php +
+ config/helperFunctions.php +
+--------------------------------------------------------------------+
*/
require_once __DIR__ . '/config/init.php';
require_once __DIR__ . '/vendor/autoload.php';
/*
+--------------------------------------------------------------------+
+ +
+ Let's Route the URL from Route class below: +
+ Route class is aliased as everest\MVC\Route +
+ Configure Routes at : [config/routes.php] +
+ +
+--------------------------------------------------------------------+
*/
route()->setRoutes(ROUTES)->deliver();
/*
+--------------------------------------------------------------------+
+ +
+ Flush out the Output Buffering... +
+ +
+--------------------------------------------------------------------+
*/
ob_flush();