public redirect ([mixed $location], [mixed $externalRedirect], [mixed $statusCode])
Redirect by HTTP to another action or URL
1 2 3 4 5 6 7 8 9 10 11 | //Using a string redirect (internal/external) $response ->redirect( "posts/index" ); //Making a redirection based on a named route $response ->redirect( array ( "for" => "index-lang" , "lang" => "jp" , "controller" => "index" )); |
Please login to continue.