-
Notifications
You must be signed in to change notification settings - Fork 84
/
config.php
54 lines (47 loc) · 1.8 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
<?php
/*
==========================================================================
ADEL CODEIGNITER 4 CRUD GENERATOR
==========================================================================
برمجة وتطوير: عادل قصي
البريد الإلكتروني: [email protected]
الموقع الرسمي: www.e-net.xyz
الصفحة الرسمية للمبرمج: https://www.facebook.com/adel.qusay.9
==========================================================================
*/
error_reporting(E_ALL);
ini_set('display_errors', 0);
/*
|--------------------------------------------------------------------------
| Define dirs
|--------------------------------------------------------------------------
|
*/
define('ABSPATH', dirname( __FILE__ ) . '/');
define('CORE', ABSPATH . 'core');
define('VIEWS', ABSPATH . 'views');
define('MVC_TPL', ABSPATH . 'mvc_templates');
define('DOWNLOADS', ABSPATH . 'downloads');
define('ASSETS', '../assets');
define('BASE_URL', (isset($_SERVER['HTTPS']) ? 'http' : 'http') . '://'.$_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']));
/*
|--------------------------------------------------------------------------
| Database configurations
|--------------------------------------------------------------------------
|
*/
$config['HOST'] = '127.0.0.1';
$config['USER'] = 'root';
$config['PASS'] = 'root';
/*
|--------------------------------------------------------------------------
| Include files required for initialization.
|--------------------------------------------------------------------------
|
*/
include_once CORE . '/viewloader.class.php';
include_once CORE . '/class.engine.php';
// Load core files
$engine = new Engine($config);
$viewLoader = new ViewLoader(VIEWS .'/');
?>