Projekt initialize

This commit is contained in:
2025-06-05 12:42:31 +02:00
commit 6a9d16028d
24 changed files with 1034 additions and 0 deletions

25
Library/ErrorMsg.php Normal file
View File

@@ -0,0 +1,25 @@
<?php
namespace Blog\Library;
use Blog\Library\View;
class ErrorMsg
{
protected $view;
public function __construct($msg = 'Ihre Anfrage konnte nicht verarbeitet werden', $ex = '')
{
$this->view = new View(dirname(__DIR__).DIRECTORY_SEPARATOR.'Views'
, 'Error', 'showErrMsg');
$this->view->setVars([
'error' => $msg,
'debug' => $ex
]);
$this->view->render();
}
}