Error 404 info

This commit is contained in:
Daniel Brendel
2023-03-02 13:45:02 +01:00
parent b0d418a0b2
commit 8eee40df2a
2 changed files with 4 additions and 22 deletions

View File

@ -12,14 +12,6 @@ class Error404Controller extends BaseController {
*/
public function index($request)
{
//Add a log line
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
return parent::view(['content', 'error/404']);
}
}