-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
34 lines (34 loc) · 998 Bytes
/
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
<?php
error_reporting(E_ALL);
ini_set("display_errors",1);
/** @var array $GLOBALS['config'] contains all configuration */
$GLOBALS["config"] = array(
"appName" => "Banque",
"version" => "1.0.0",
"domain" => $_SERVER['SERVER_NAME'],
"url_suffix" => ".html",
"author" => 'EUNICE',
"path" => array(
"app" => "app/",
"core" => "core/",
"index" => "index.php"
),
"defaults" => array(
"controller" => "main",
"method" => "index"
),
"routes" => array(),
"database" => array(
"host" => "localhost",
"username" => "root",
"password" => "",
"name" => "banque"
)
);
/** @var array $GLOBALS['instances'] contains all object */
$GLOBALS["instances"] = array();
/** @var string $GLOBALS["config"]["path"]['core']."autoload.php" contains autoload path and
* help us to autoload controllers, models, libs, etc.
*/
include_once $GLOBALS["config"]["path"]['core']."autoload.php";
new router();