1 <?php
2
3 namespace Alo\Controller;
4
5 if(!defined('GEN_START')) {
6 http_response_code(404);
7 die();
8 }
9
10 /**
11 * The abstract error controller. Your custom error controllers will need to follow this design.
12 *
13 * @author Art <a.molcanovas@gmail.com>
14 */
15 abstract class AbstractErrorController extends AbstractController {
16
17 /**
18 * Displays the error page
19 *
20 * @author Art <a.molcanovas@gmail.com>
21 *
22 * @param int $code The error HTTP response code
23 * @param string $message Optional message override
24 */
25 abstract function error($code = 404, $message = null);
26
27 /**
28 * Displays a generic error page for which there is no HTML file
29 *
30 * @author Art <a.molcanovas@gmail.com>
31 *
32 * @param int $code The HTTP response code
33 */
34 abstract function displayErrorPage($code = 404);
35 }