phpbb\install\helper\iohandler\iohandler_interface::redirect PHP Method

redirect() public method

Redirects the user to a new page
public redirect ( string $url, boolean $use_ajax = false )
$url string URL to redirect to
$use_ajax boolean Whether or not to use AJAX redirect
    public function redirect($url, $use_ajax = false);

Usage Example

Exemplo n.º 1
0
 /**
  * Redirects an AJAX request to a non-JS version
  *
  * @param string	$url	URL to redirect to
  */
 public function redirect_to_html($url)
 {
     $this->iohandler->redirect($url);
     $this->iohandler->send_response(true);
 }