-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
39 lines (37 loc) · 1.17 KB
/
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
<?php
error_reporting(E_ALL);
ini_set("log_errors", 1);
date_default_timezone_set('Asia/Jakarta');
ini_set('display_errors', 1);
$GLOBALS['config'] = [
'appName' => 'AVL Framework',
'domain' => 'http://localhost:8080',
'version' => '0.0.2',
'cache_enabled' => true,
'path' => [
'app' => 'app/',
'core' => 'core/',
'index' => 'index.avl.php',
'view' => 'resources/views/',
'cache' => 'storage/caches/',
'cache_view' => 'storage/caches/views/',
'log_file' => 'storage/logs/avl-' . date('Y-m-d') . '.log',
'session' => 'storage/sessions/'
],
'defaults' => [
'controller' => 'Main',
'method' => 'index'
],
'routes' => [
],
'database' => [
'hostname' => 'localhost',
'username' => 'dev',
'password' => 'leonie',
'database' => 'pos'
]
];
ini_set('session.save_path', $GLOBALS['config']['path']['session']);
ini_set("error_log", $GLOBALS['config']['path']['log_file']);
$GLOBALS['instances'] = [];
require_once $GLOBALS['config']['path']['core'] . 'autoload.php';