Beispiel #1
0
 public static function redirect($to, $code = 307)
 {
     header("HTTP/1.1 {$code}");
     header('Location: ' . Router::url($to));
     exit;
 }