-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
41 lines (27 loc) · 802 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
37
38
39
40
41
<?php
//FRONT CONTROLLER
/*
1) UMUMIY SOZLAMALAR / GENERAL SETTINGS
* SAYTDAGI XATOLIKLARNI BATAFSIL KO'RSATADI / VIEW MORE DETAILS ERRORS ON THE SITE
* PROYEKT ISHGA TUSHGANDA O'CHIRIB QO'YILADI / THE PROJECT WILL BE CLOSED WHEN IT IS STARTED
*/
ini_set('display_errors', 1);
error_reporting(E_ALL);
/* END */
/*
2) SISTEMAGA FAYLLARNI ULASH / CONNECTING FILES TO THE SYSTEM
* PROYEKTNI TO'LIQ JOYLASHUVINI ANIQLAB OLISH / DETERMINING THE FULL LOCATION OF THE PROJECT
* VA ROUTERGA BOG'LANISH / AND CONNECTING TO A ROUTER
*/
define('ROOT', dirname(__FILE__));
require_once(ROOT.'/components/Router.php');
/*
3) BAZA BILAN ALOQANI O'RNATISH / CONNECT TO DATABASE
*
*/
/*
4) ROUTERNI ISHGA TUSHIRISH / RUN TO ROUTER
*
*/
$router = new Router();
$router->run();