Exemplo n.º 1
0
function error_404($non_found_name)
{
    header($_SERVER["SERVER_PROTOCOL"] . " 404 Not Found", true, 404);
    DOM::start();
    DOM::html()->body()->append_h1('404 Not found');
    DOM::html()->body()->append_p('The controller file \'' . $non_found_name . '\' is not on path.');
    echo DOM::generate();
    trigger_error('App error fired', E_USER_NOTICE);
    exit;
}