You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
273 B
25 lines
273 B
9 years ago
|
<?php
|
||
|
|
||
|
namespace Lychee\Modules;
|
||
|
|
||
|
final class Response {
|
||
|
|
||
|
public static function warning($msg) {
|
||
|
|
||
|
exit('Warning: ' . $msg);
|
||
|
|
||
|
}
|
||
|
|
||
|
public static function error($msg) {
|
||
|
|
||
|
exit('Error: ' . $msg);
|
||
|
|
||
|
}
|
||
|
|
||
|
public static function json($str) {
|
||
|
|
||
|
exit(json_encode($str));
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|