public function productPage() { if (isset($_GET['productId']) && $_GET['productId'] > 0) { require $this->path . 'database/product.php'; $product = new Product($this->path); $itemMass = $product->getOne($_GET['productId']); if (!is_array($itemMass)) { header('Location: /error.html', true, 301); } else { require $this->path . 'views/bigPage.php'; } } }