mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 07:02:47 +08:00
改写路由
This commit is contained in:
@@ -11,6 +11,9 @@
|
||||
|
||||
namespace think;
|
||||
|
||||
use think\Config as Config;
|
||||
use think\Transform as Transform;
|
||||
use think\Url as Url;
|
||||
class Response
|
||||
{
|
||||
|
||||
@@ -85,6 +88,18 @@ class Response
|
||||
header('Location: ' . $url);
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置响应头
|
||||
* @access protected
|
||||
* @param string $name 参数名
|
||||
* @param string $value 参数值
|
||||
* @return void
|
||||
*/
|
||||
public static function header($name, $value)
|
||||
{
|
||||
header($name . ':' . $value);
|
||||
}
|
||||
|
||||
// 发送Http状态信息
|
||||
public static function sendHttpStatus($status)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user