-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
25 lines (22 loc) · 700 Bytes
/
index.php
File metadata and controls
25 lines (22 loc) · 700 Bytes
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
<?php
/* For use in development mode... */
error_reporting(E_ALL);
define('BASE_PATH', dirname(realpath(__FILE__)) . '/');
define('APP_PATH', BASE_PATH . 'app/');
define('CONTROLLER_PATH', APP_PATH . 'controllers/');
define('VIEW_PATH', APP_PATH . 'views/');
include_once BASE_PATH . '/vendor/autoload.php';
/** GloBal Configuration array **/
$GLOBALS['config'] = array(
'mysql' => array(
'driver' => 'MYSQL',
'tables' => array(),
'host' => '127.0.0.1',
'username' => 'root',
'password' => '',
'db' => 'test'
)
);
/** Call BootStrap for routing **/
$bootstrap = new \Ecne\Core\BootStrap();
$bootstrap->parse($_SERVER['REQUEST_URI'], 'GET');