PHP Classes

File: resources/views/errors/error.php

Recommend this page to a friend!
  Classes of Kabir Hossain   Sage   resources/views/errors/error.php   Download  
File: resources/views/errors/error.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Sage
Demo application of Web development framework
Author: By
Last change:
Date: 1 year ago
Size: 492 bytes
 

Contents

Class file image Download
<?php
    header
( $_SERVER["SERVER_PROTOCOL"] . 'Error');
?>
<h1 style="color: red"><?php echo $error ?? '';?></h1>

    <?php
    $previous
= "javascript:history.go(-1)";
    if(isset(
$_SERVER['HTTP_REFERER'])) {
       
$previous = filter_var($_SERVER['HTTP_REFERER'],FILTER_VALIDATE_URL);
    }
   
?>
<h3>Please <a href="<?php echo $previous ?>">go back</a> and try again.</h3>
<!-- <h3>Please <a href="--><?php //echo route(''); ?><!--">go back</a> and try again.</h3>-->