改写路由

This commit is contained in:
thinkphp
2015-11-23 09:39:04 +08:00
parent 2f6963e8ea
commit aeb7252705
3 changed files with 59 additions and 37 deletions

View File

@@ -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)
{