Skip to content
This repository was archived by the owner on Jun 19, 2022. It is now read-only.

Commit 4d64f33

Browse files
committed
index changed
1 parent 6a0b35b commit 4d64f33

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

app/System/Router.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<?php
22
namespace App\System;
33

4-
use \App\Controllers;
5-
64
class Router
75
{
86
protected $controller;

index.php

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,39 @@
66

77
const DEFAULT_CONTROLLER = "Default_Controller";
88

9+
10+
911
/*---------- SET ERROR DOCUMENT THAT IS USED AS 404 ERROR ---------------*/
1012

1113
const ERROR_DOCUMENT = "404.html";
1214

1315

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+
1426
/*---------- SET ENCRYPTION KEY THAT WILL BE USED TO ENCRYPT CONFIDENTIAL DATA
1527
* ONCE STARTED THE SYSTEM PLEASE DON'T CHANGE IT.
1628
*---------------*/
1729

1830
const KEY = 'qwertyuiopASDFGHJKLzxcvbnm!@#$%^&*87654321';
1931

2032

21-
/*---------- SETTINGS WILL BE APPPLIED BASED ON THE ENVIRONMENT ---------------*/
2233

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+
2442

2543
/*---------- SET DB DETAILS ---------------*/
2644

0 commit comments

Comments
 (0)