Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- use App\Routing;
- function __autoload($class) {
- $class = '../src/'.str_replace('\\', '/', $class) . '.php';
- require_once($class);
- }
- session_start();
- $routing = new Routing();
- try {
- $html = $routing->parse();
- echo $html;
- } catch(\Exception $e) {
- header('HTTP/1.0 404 Not Found');
- echo $e->getMessage();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement