-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
44 lines (42 loc) · 1.4 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
40
41
42
43
44
<?php
error_reporting(E_ALL);
ini_set("display_errors", 1);
$GLOBALS["config"] = array(
"appName" => "supernova", // SET IT TO YOUR DESIRED PROJECT NAME OR Directory NAME
"domain" => "supernova", // SET IT TO YOUR DESIRED PROJECT NAME OR Directory NAME
"version" => "0.0.1",
"encryption_key" => "", // SET ENCRYPTION KEY FOR PASSWORD ENCRYPTION
/* DO NOT CHANGE BELOW SECTION */
"paths" => array(
"app" => "app/",
"core" => "core/",
"index" => "index.php"
),
/* DO NOT CHANGE ABOVE SECTION */
"defaults" => array(
"controller" => "home", // DEFAULT CONTROLLER NAME
"method" => "index" // DEFAULT METHOD or FUNCTION NAME
),
"routes" => array( // Custom Routes Array
"custom-route-1" => array( // Custom Route URI
"controller" => "controller-name", // Custom Route Controller Name
"method" => "nethod-name" // Custom Route Method/Function Name
),
"custom-route-2" => array(
"controller" => "controller-name",
"method" => "nethod-name"
)
),
"database" => array(
"host" => "localhost", // DATABASE HOSTNAME
"username" => "root", // DATABASE USERNAME
"password" => "", // DATABASE PASSWORD
"dbname" => "" // DATABASE NAME
),
);
/* DO NOT CHANGE BELOW SECTION */
$GLOBALS['instances'] = array();
require_once $GLOBALS['config']['paths']['core']."autoload.php";
new router();
/* DO NOT CHANGE ABOVE SECTION */
?>