public function __construct($path) { parent::__construct(303); $protocol = !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443 ? "https" : "http"; if ($path[0] != "/") { $path = "/" . $path; } $this->redirectUrl = "{$protocol}://" . $_SERVER['HTTP_HOST'] . $path; }
public function __construct() { parent::__construct(500, new View("500")); }
public function __construct() { parent::__construct(404, new View("404")); }