Creating Error 404 Page

Similar to other pages, you have to define Error 404 page using same method, just name the file 404.php and Yugal will use it as ErrorDocument 404

Example Code

<?php
return <<<HTML
    <body>
        <h1>Oops!</h1>
        <p>Page Not Found</p>
    </body>
    <head>
        <title>Page Not Found</title>
    </head>
HTML;
?>

It do not accepts lifecycle methods and tags.

Last updated