23 lines
434 B
PHP
23 lines
434 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';
|
|
});
|
|
|
|
// Define global CONFIG constant.
|
|
define("CONFIG",
|
|
require __DIR__ . '/config.php'
|
|
); |