concrete/src/Routing/Redirect.php
public static function to()
    {
        // Is what we're providing a URL object?
        $args = func_get_args();
        if (is_object($args[0]) && $args[0] instanceof UrlInterface) {
            $url = $args[0];
        } else {
            $url = call_user_func_array('\URL::to', func_get_args());
        }
        $r = static::createRedirectResponse((string) $url, 302, array());

        return $r;
    }
public static function to()
    {
        // Is what we're providing a URL object?
        $args = func_get_args();
        if (is_object($args[0]) && $args[0] instanceof UrlInterface) {
            $url = $args[0];
        } else {
            $url = call_user_func_array('\URL::to', func_get_args());
        }
        $r = static::createRedirectResponse((string) $url, 302, array());

        return $r;
    }
public static function to ( ) { // Is what we're providing a URL object? $ args = func_get_args ( ) ; if ( is_object ( $ args [ 0 ] ) && $ args [ 0 ] instanceof UrlInterface ) { $ url = $ args [ 0 ] ; } else { $ url = call_user_func_array ( '\URL::to' , func_get_args ( ) ) ; } $ r = static :: createRedirectResponse ( ( string ) $ url , 302 , array ( ) ) ; return $ r ; }
Redirects to a concrete5 resource.
Redirects to a concrete5 resource .