Action::redirect PHP Method

redirect() protected method

Action跳转(URL重定向) 支持指定模块和延时跳转
protected redirect ( string $url, array $params = [], integer $delay, string $msg = '' )
$url string 跳转的URL表达式
$params array 其它URL参数
$delay integer 延时跳转的时间 单位为秒
$msg string 跳转提示信息
    protected function redirect($url, $params = array(), $delay = 0, $msg = '')
    {
        if (C('LOG_RECORD')) {
            Log::save();
        }
        $url = U($url, $params);
        redirect($url, $delay, $msg);
    }