PHP 클래스 think\response\Redirect

상속: extends think\Response
파일 보기 프로젝트 열기: top-think/framework 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$options
$params URL参数

공개 메소드들

메소드 설명
__construct ( $data = '', $code = 302, array $header = [], array $options = [] )
getTargetUrl ( ) : string 获取跳转地址
params ( $params = [] )
remember ( ) 记住当前url后跳转
restore ( ) 跳转到上次记住的url
with ( string | array $name, mixed $value = null ) 重定向传值(通过Session)

보호된 메소드들

메소드 설명
output ( mixed $data ) : mixed 处理数据

메소드 상세

__construct() 공개 메소드

public __construct ( $data = '', $code = 302, array $header = [], array $options = [] )
$header array
$options array

getTargetUrl() 공개 메소드

获取跳转地址
public getTargetUrl ( ) : string
리턴 string

output() 보호된 메소드

处理数据
protected output ( mixed $data ) : mixed
$data mixed 要处理的数据
리턴 mixed

params() 공개 메소드

public params ( $params = [] )

remember() 공개 메소드

记住当前url后跳转
public remember ( )

restore() 공개 메소드

跳转到上次记住的url
public restore ( )

with() 공개 메소드

重定向传值(通过Session)
public with ( string | array $name, mixed $value = null )
$name string | array 变量名或者数组
$value mixed

프로퍼티 상세

$options 보호되어 있는 프로퍼티

protected $options

$params 보호되어 있는 프로퍼티

URL参数
protected $params