if ($this->register($email, $register_status))
{
$this->sendConfirmationEmail($email);
echo json_encode(array("message" => $this->error = $this->l('Your email was registered. Thank You!'),"code" => 1));
die();
}
this is my code and I want to redirect the page after executing this code