This repository was archived by the owner on Jun 19, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
namespace App \System ;
3
3
4
- use \App \Controllers ;
5
-
6
4
class Router
7
5
{
8
6
protected $ controller ;
Original file line number Diff line number Diff line change 6
6
7
7
const DEFAULT_CONTROLLER = "Default_Controller " ;
8
8
9
+
10
+
9
11
/*---------- SET ERROR DOCUMENT THAT IS USED AS 404 ERROR ---------------*/
10
12
11
13
const ERROR_DOCUMENT = "404.html " ;
12
14
13
15
16
+
17
+ /*---------- SET ERROR DOCUMENT THAT IS USED AS 404 ERROR
18
+ * TRUE => USE TWIG TEMPLATE ENGINE FOR VIEW FILES
19
+ * FALSE => USE .php EXTENSION FOR VIEW FILES
20
+ *---------------*/
21
+
22
+ const USE_TEMPLATE = TRUE ;
23
+
24
+
25
+
14
26
/*---------- SET ENCRYPTION KEY THAT WILL BE USED TO ENCRYPT CONFIDENTIAL DATA
15
27
* ONCE STARTED THE SYSTEM PLEASE DON'T CHANGE IT.
16
28
*---------------*/
17
29
18
30
const KEY = 'qwertyuiopASDFGHJKLzxcvbnm!@#$%^&*87654321 ' ;
19
31
20
32
21
- /*---------- SETTINGS WILL BE APPPLIED BASED ON THE ENVIRONMENT ---------------*/
22
33
23
- const ENVIRONMENT = 'development ' ; // OR production => live
34
+ /*---------- SETTINGS WILL BE APPPLIED BASED ON THE ENVIRONMENT
35
+ * ENVIRONMENT => development
36
+ * OR ENVIRONMENT => production
37
+ * ---------------*/
38
+
39
+ const ENVIRONMENT = '' ; // OR production => live
40
+
41
+
24
42
25
43
/*---------- SET DB DETAILS ---------------*/
26
44
You can’t perform that action at this time.
0 commit comments