25 lines
453 B
PHP
25 lines
453 B
PHP
<?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();
|
|
}
|
|
|
|
|
|
|
|
} |