public static function createRedirect($url, $statusCode = Response::HTTP_FOUND, array $headers = [])
    {
        $view = static::create(null, $statusCode, $headers);
        $view->setLocation($url);

        return $view;
    }
public static function createRedirect($url, $statusCode = Response::HTTP_FOUND, array $headers = [])
    {
        $view = static::create(null, $statusCode, $headers);
        $view->setLocation($url);

        return $view;
    }
public static function createRedirect ( $ url , $ statusCode = Response :: HTTP_FOUND , array $ headers = [ ] ) { $ view = static :: create ( null , $ statusCode , $ headers ) ; $ view -> setLocation ( $ url ) ; return $ view ; }
Convenience method to allow for a fluent interface while creating a redirect to a
given url.

@param string $url
@param int    $statusCode
@param array  $headers

@return static
Convenience method to allow for a fluent interface while creating a redirect to a given url .