21 lines
443 B
PHP
21 lines
443 B
PHP
<?php
|
|
/*
|
|
This is the main file to be included on every page.
|
|
It will act as a front controller of our application.
|
|
_____
|
|
/ \
|
|
| () () |
|
|
\ ^ /
|
|
|||||
|
|
|||||
|
|
|
|
Tread carefully
|
|
*/
|
|
|
|
// Autoloader
|
|
spl_autoload_register(function ($class_name) {
|
|
require __DIR__ . '/core/' . $class_name . '.php';
|
|
});
|
|
|
|
// God mode class that instantiates many other classes... or something like that
|
|
return new App(); |