Xpressengine\Presenter\Presenter::redirect PHP Method

redirect() public method

xeRedirect() 메소드와 같은 형태의 파라메터 사용
public redirect ( null $to = null, integer $status = 302, array $headers = [], null $secure = null, array $data = [] ) : RedirectResponse | Redirector
$to null redirect url
$status integer status code
$headers array header
$secure null secure
$data array data
return RedirectResponse | Redirector
    public function redirect($to = null, $status = 302, $headers = [], $secure = null, $data = [])
    {
        return xeRedirect($to, $status, $headers, $secure, $data);
    }