NotFoundPage.inc 434 B

1234567891011121314151617
  1. <?php
  2. class NotFoundPage implements IPage {
  3. public static function getInstance() {
  4. return new NotFoundPage(new Header(), new View());
  5. }
  6. private $header;
  7. private function __construct(Header $header, View $view) {
  8. $this->header = $header;
  9. $this->view = $view;
  10. }
  11. public function process() {
  12. $this->header->pageNotFound();
  13. $twig = new TwigWrapper();
  14. $data = array();
  15. return $twig->render('page_404.html', $data);
  16. }
  17. }