Browse Source

Version 0.2

ahwelp 7 năm trước cách đây
mục cha
commit
6c787b73a5
1 tập tin đã thay đổi với 9 bổ sung0 xóa
  1. 9 0
      src/RequestResponse/Response.php

+ 9 - 0
src/RequestResponse/Response.php

@@ -123,6 +123,15 @@ class Response{
         $instance->send();
     }
 
+    public static function back(){
+        $instance = self::getInstance();
+
+        $instance->header('Location: ', $_SERVER['HTTP_REFERER']);
+
+        $instance->body('');
+        $instance->send();
+    }
+
     function done(){
         die;
     }