There are some scripts that process the data, and then you need to return to the previous page, I do it through
public static function GoBack() { if (@$_SERVER['HTTP_REFERER'] != null) { header("Location: ".$_SERVER['HTTP_REFERER']); } Sys::GoHome(); }
but always Sys :: GoHome ();
what could be wrong here?