Resources\Controller::outputError PHP Method

outputError() public static method

public static outputError ( $file, $data = [] )
    public static function outputError($file, $data = [])
    {
        return (new self())->output($file, $data);
    }

Usage Example

Esempio n. 1
0
 public static function outputError($message = null)
 {
     // Write the error to log file
     @error_log('Error 404 Page Not Found: ' . $_SERVER['REQUEST_URI']);
     header('HTTP/1.1 404 Not Found', true, 500);
     \Resources\Controller::outputError('errors/404', array('message' => $message));
 }
All Usage Examples Of Resources\Controller::outputError