-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
56 lines (34 loc) · 1.1 KB
/
config.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/******** CONFIG FILE FOR APP **********/
define('database_type', 'mysqli');
define('database_name', '');
define('server', 'localhost');
define('username', '');
define('password', '');
define('charset', 'utf8');
// optional
define('port', 3306);
define('THEME_NAME', 'default');
define('TEMPLATE_EXTENSION', '.tpl');
/*
* Default page of the application.
* no need to slash sign / at the end of the paths
* do not write like that 'app/view/path to...' no need to the 'view' word.
*/
define('DEFAULT_PAGE', 'common/home');
date_default_timezone_set('Europe/Istanbul');
/*
* change the header and footer file location the way you want.
* No need to write your theme path.Because these files must be in the view folder
* So, you just write as like that home/xxx.php
* When the const HEADER_FILE called by PHP.
* Never use extension
*/
define('HEADER_FILE', 'common/header');
define('FOOTER_FILE', 'common/footer');
define("BASE_URL", 'http://localhost/rex/');
define("SHOW_ERROR", true);
define("FRIENDLY_URL", false);
define('LOGIN_URL', 'common/login');
define('404_PAGE', 'common/404');
?>