setDoctype(Page :: $XHTML); $controller = new controller(); // $controller -> registerAlias('index', 'index', 'invis', 'like'); // $controller -> registerAlias('index', 'index', 'invis', 'best'); //$page -> setDir(__DIR__); $controller -> getView(); if (is_file($controller -> view)){ require_once 'views/_header.phtml'; require_once($controller -> view); require_once 'views/_footer.phtml'; } else { header("HTTP/1.1 404 Not Found"); require_once 'views/_header.phtml'; require_once "views/404.phtml"; require_once 'views/_footer.phtml'; } ?>