baseline
This commit is contained in:
21
pages/error/not_found(error).phtml
Normal file
21
pages/error/not_found(error).phtml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
use MintyPHP\Http\Request;
|
||||
|
||||
header('HTTP/1.1 404 Not Found');
|
||||
|
||||
$path = Request::path();
|
||||
$home = lurl('');
|
||||
$backTarget = Request::safeReturnTarget('');
|
||||
$backUrl = $backTarget !== '' ? lurl($backTarget) : $home;
|
||||
|
||||
?>
|
||||
<header>
|
||||
<h1><?php e(t('Page not found')); ?></h1>
|
||||
<p><?php e(t('The page you requested does not exist or has moved.')); ?></p>
|
||||
</header>
|
||||
<?php if ($path !== ''): ?>
|
||||
<p><small><?php e(t('Requested path')); ?>: <?php e($path); ?></small></p>
|
||||
<?php endif; ?>
|
||||
<a class="outline secondary" role="button" href="<?php e($backUrl); ?>"><?php e(t('Back')); ?></a>
|
||||
<a role="button" href="<?php e($home); ?>"><?php e(t('Home')); ?></a>
|
||||
Reference in New Issue
Block a user