params = $params; } public function display() { http_response_code(404); parent::display(); } public function getContent() { include_once($this->params['theme']['error-template']); static::$template = new Template(); if (is_null($this->html)) { $this->html = $this->generatePage(); } return $this->html; } private function generatePage() { $params = $this->params; $page['title'] = $this->title; $page['theme'] = $params['theme']; $page['content'] = $this->content; $page['google_analytics'] = $params['google_analytics']; $page['piwik_analytics'] = $params['piwik_analytics']; return static::$template->get_content($page, $params); } }