Updated a few things
This commit is contained in:
@@ -7,6 +7,16 @@ class Response {
|
||||
$this->_anvil = $a;
|
||||
}
|
||||
|
||||
public function badrequest($txt="Bad Request") {
|
||||
header('HTTP/1.0 400 Bad Request');
|
||||
echo $txt;
|
||||
}
|
||||
|
||||
public function notfound($txt="Page Not Found") {
|
||||
header('HTTP/1.0 404 Not Found');
|
||||
echo $txt;
|
||||
}
|
||||
|
||||
public function redirect($url) {
|
||||
header('Location: '.$url);
|
||||
}
|
||||
|
Reference in New Issue
Block a user