Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.34 KB | None | 0 0
  1. <?php
  2.  
  3. use App\Routing;
  4.  
  5. function __autoload($class) {
  6.     $class = '../src/'.str_replace('\\', '/', $class) . '.php';
  7.     require_once($class);
  8. }
  9.  
  10. session_start();
  11. $routing = new Routing();
  12. try {
  13.     $html = $routing->parse();
  14.     echo $html;
  15. } catch(\Exception $e) {
  16.     header('HTTP/1.0 404 Not Found');
  17.     echo $e->getMessage();
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement