-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·41 lines (30 loc) · 1.06 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
<?php
/**
* ==============================
* Aegis Framework | MIT License
* http://www.aegisframework.com/
* ==============================
*/
// Uncomment on Production
//error_reporting(0);
include("lib/aegis.php");
$session = new Session();
$router = new Router("localhost/AegisWebsite");
$meta = [
"title" => "Aegis Framework",
"description" => "Aegis is a simple, fast and easy to use Web Development Framework.",
"keywords" => "framework,aegis,web,development,php,js,javascript,html,css,template,simple,fast",
"author" => "Diego Islas Ocampo",
"twitter" => "@HyuchiaDiego",
"google" => "+HyuchiaDiego",
"domain" => $router -> getBaseUrl(),
"route" => $router -> getFullUrl(),
"year" => date("Y"),
"shareimage" => "share.png"
];
$router -> registerRoute("/", new View("main", null, $meta));
$router -> registerRoute("/css", new View("css", null, $meta));
$router -> registerRoute("/php", new View("php", null, $meta));
$router -> registerRoute("/javascript", new View("javascript", null, $meta));
$router -> listen();
?>