AloFramework documentation
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Namespaces

  • Alo
    • Cache
    • CLI
    • Controller
    • Db
    • Exception
    • FileSystem
    • Session
    • Validators
    • Windows
  • Controller
  • None
  • PHP

Classes

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