src/core/classes/org/glizy/Exception.php
/**
     * Load the error page
     * Check if the developer have defined a custome page
     * @param  int $code            Error code
     * @param  string $codeDescription Error code description
     * @param  string $message         Error message
     */
Load the error page
Check if the developer have defined a custome page
@param  int $code            Error code
@param  string $codeDescription Error code description
@param  string $message         Error message
Load the error page Check if the developer have defined a custome page @param int $code Error code @param string $codeDescription Error code description @param string $message Error message
private static function loadErrorPage($code, $codeDescription, $message)
    {
        $e                = array();
        $e['title']       = class_exists('org_glizy_Config') ? org_glizy_Config::get('APP_NAME') : 'GLIZY framework';
        $e['code']        = $code;
        $e['description'] = $message;
        $e['message']     = '';
        header('HTTP/1.0 '.$code.' '.$codeDescription);
        if (file_exists('error-'.$code.'.html')) {
            include_once('error-'.$code.'.html');
        } else if (file_exists('error-'.$code.'.php')) {
            include_once('error-'.$code.'.php');
        } else {
            include_once(dirname(__FILE__) . '/../../../pages/errors/'.$code.'.php');
        }
        exit;
    }
private static function loadErrorPage ( $ code , $ codeDescription , $ message ) { $ e = array ( ) ; $ e [ 'title' ] = class_exists ( 'org_glizy_Config' ) ? org_glizy_Config :: get ( 'APP_NAME' ) : 'GLIZY framework' ; $ e [ 'code' ] = $ code ; $ e [ 'description' ] = $ message ; $ e [ 'message' ] = '' ; header ( 'HTTP/1.0 ' . $ code . ' ' . $ codeDescription ) ; if ( file_exists ( 'error-' . $ code . '.html' ) ) { include_once ( 'error-' . $ code . '.html' ) ; } else if ( file_exists ( 'error-' . $ code . '.php' ) ) { include_once ( 'error-' . $ code . '.php' ) ; } else { include_once ( dirname ( __FILE__ ) . '/../../../pages/errors/' . $ code . '.php' ) ; } exit ; }
Load the error page
 Check if the developer have defined a custome page
 @param  int $code            Error code
 @param  string $codeDescription Error code description
 @param  string $message         Error message
Load the error page Check if the developer have defined a custome page @param int $code Error code @param string $codeDescription Error code description @param string $message Error message