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

Namespaces

  • Alo
    • Cache
    • Controller
    • Db
    • Exception
    • Session
    • Statics
    • Test
    • Validators
  • 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       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        * @param int    $code    The error HTTP response code
22        * @param string $message Optional message override
23        */
24       abstract function error($code = 404, $message = null);
25 
26       /**
27        * Displays a generic error page for which there is no HTML file
28        *
29        * @author Art <a.molcanovas@gmail.com>
30        * @param int $code The HTTP response code
31        */
32       abstract function displayErrorPage($code = 404);
33    }
AloFramework documentation API documentation generated by ApiGen 2.8.0