Function: go
Redirects the user to a new URL
Info
Syntax
go($url=false, $code=false)
Parameters
- $url (string) The URL to redirect to
- $code (boolean) The HTTP status code, which should be sent (301, 302 or 303)
Example
go('http://google.com')
// sends the browser to the google homepage
go('/someotherpage')
// sends the browser to someotherpage (relative url)