facut pana la video 7

This commit is contained in:
Cerbu Andrei Mihnea
2023-05-10 00:47:48 +03:00
parent 1abdc313f4
commit 90f12ab916
40 changed files with 1644 additions and 41 deletions
+13
View File
@@ -0,0 +1,13 @@
<?php
namespace app\core;
class Response{
public function setStatusCode(int $code){
http_response_code($code);
}
public function redirect(string $url){
header("Location: ".$url);
}
}