FOFController::setRedirect
Registers a redirection with an optional message. The redirection is carried out when you use the redirect method.
Signature
public function setRedirect(string
$url,
[string
$msg = null,
[string
$type = null]] )
Parameters
-
$url
- The URL to redirect to
-
$msg
- The message to be pushed to the application
-
$type
- The message type to be pushed to the application, e.g. 'error'
Returns
- FOFController
- This object to support chaining