<?php $template = new core\Template(); $template->setParams('title', 'Erro'); $template->setParams('styles', ['/css/main.css']); $template->init(); require_once __DIR__ . '/message.php'; $template->close();
<?php $template = new core\Template(); $template->setParams('title', $title); $template->setParams('styles', $styles); $template->setParams('scripts', $scripts); $template->init(); $render = __MODULES__ . $render . '.php'; if (file_exists($render)) { require_once $render; } else { $errorMessage = "Página <important>{$title}</important> não encontrada"; \core\Error::message($errorMessage); } $template->close();