product = new Product($_GET['id']); } } public function render() { if(class_exists('QRcode')) { QRcode::svg((string)$this->product->get_serial()); } } } ?>