Frontend, Bugfixes

This commit is contained in:
2020-04-04 01:15:59 +02:00
parent efe3ada470
commit 8ce74edc38
30 changed files with 501 additions and 132 deletions

View File

@@ -17,6 +17,7 @@ namespace Documents\Document404 {
use Elements\Body;
use Elements\Head;
use Views\View404;
class Head404 extends Head {
@@ -25,11 +26,6 @@ namespace Documents\Document404 {
}
protected function initSources() {
// $this->loadJQuery();
// $this->loadBootstrap();
// $this->loadFontawesome();
// $this->addJS(\Elements\Script::CORE);
// $this->addCSS(\Elements\Link::CORE);
}
protected function initMetas() {
@@ -59,7 +55,7 @@ namespace Documents\Document404 {
public function getCode() {
$html = parent::getCode();
$html .= "<b>404 Not Found</b>";
$html .= "<body>" . (new View404($this->getDocument())) . "</body>";
return $html;
}
}