Added 404 error page
This commit is contained in:
parent
6dfce20d7f
commit
bcadfb6dd3
|
@ -6,6 +6,7 @@ use CodeIgniter\Router\RouteCollection;
|
|||
* @var RouteCollection $routes
|
||||
*/
|
||||
$routes->get('/', 'Home::index');
|
||||
$routes->set404Override('App\Controllers\Home::error404');
|
||||
$routes->get('user/(:any)', 'Users::user/$1');
|
||||
$routes->get('car/(:any)', 'Cars::index/$1');
|
||||
$routes->get('track/(:any)', 'Tracks::index/$1');
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
<?= get_header('404: Page not found') ?>
|
||||
<div class="container">
|
||||
<h1>404 - Page Not Found</h1>
|
||||
|
||||
<img id="img_404" src="<?= base_url('img/404.svg') ?>" />
|
||||
|
||||
<p id="text_404">
|
||||
<?php if (! empty($message) && $message !== '(null)') : ?>
|
||||
<?= nl2br(esc($message)) ?>
|
||||
<?php else : ?>
|
||||
Sorry! Cannot seem to find the page you were looking for.
|
||||
<?php endif ?>
|
||||
</p>
|
||||
</div>
|
||||
<?= get_footer() ?>
|
Loading…
Reference in New Issue