mirror of
https://github.com/SophiaAtkinson/steamwidgets-web.git
synced 2025-06-27 14:37:41 -07:00
Error 404 info
This commit is contained in:
@ -12,14 +12,6 @@ class Error404Controller extends BaseController {
|
|||||||
*/
|
*/
|
||||||
public function index($request)
|
public function index($request)
|
||||||
{
|
{
|
||||||
//Add a log line
|
return parent::view(['content', 'error/404']);
|
||||||
addLog(ASATRU_LOG_INFO, "Error 404");
|
|
||||||
|
|
||||||
//Generate the 404 view
|
|
||||||
$v = new Asatru\View\ViewHandler();
|
|
||||||
$v->setLayout('layout') //The layout file. Will be \app\views\layout.php
|
|
||||||
->setYield('yield', 'error/404'); //The index yield. Will be \app\views\error\404.php
|
|
||||||
|
|
||||||
return $v; //Pass the object to the engine
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,17 +1,7 @@
|
|||||||
<!-- Error 404 yield file -->
|
<!-- Error 404 yield file -->
|
||||||
|
|
||||||
<div class="outer">
|
<div class="content-section">
|
||||||
<div class="inner">
|
<h1>Error 404</h1>
|
||||||
<div class="title">
|
|
||||||
<h1>Error 404</h1>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="text">
|
<p>The requested resource <?= $_SERVER['REQUEST_URI']; ?> was not found on the server.</p>
|
||||||
<p>The requested resource <?= $_SERVER['REQUEST_URI']; ?> was not found on the server.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="links">
|
|
||||||
<button type="button" class="button btn-col-contact" onclick="location.href = '{{ url('/') }}';">Go home</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
Reference in New Issue
Block a user