Method | Description | |
---|---|---|
redirect ( string $url, integer $time ) : void | 重定向 | |
sendContentTypeBySubFix ( string $subFix = 'html' ) | 通过后缀名输出contentType | |
sendHttpStatus ( integer $code ) | 发送http状态码相对应的信息 | |
show404Page ( string $tpl = null ) : void | 显示404页面 | |
url ( string $url = '', integer $echo = 1 ) : string | URL组装 支持不同URL模式 eg: \Cml\Http\Response::url('Home/Blog/cate/id/1') |
public static sendContentTypeBySubFix ( string $subFix = 'html' ) | ||
$subFix | string |
public static sendHttpStatus ( integer $code ) | ||
$code | integer | 要设置的http code |
public static show404Page ( string $tpl = null ) : void | ||
$tpl | string | 模板路径 |
return | void |