Example #1
0
 /**
  * @param string $redirectUrl - The URL to redirect to
  * @param int $responseCode - The response code (defaults to 302 - Found)
  */
 public function __construct($redirectUrl, $responseCode = 302)
 {
     // set up the regular response object
     parent::__construct('', $responseCode);
     // Set the redirection URL
     $this->setRedirectToURL($redirectUrl);
 }