{$name} = $value; } public function Header() { if($this->is_static_coupon){ $file = './pdf/coupon/images/coupon-background.pdf'; }else{ $file = './pdf/coupon/images/coupon-background1.pdf'; } if (null === $this->_tplIdx) { $this->setSourceFile($file); $this->_tplIdx = $this->importPage(1); } $this->useTemplate($this->_tplIdx); } /*function Footer() { $this->SetFont('Helvetica', '', 10); $this->SetXY(15, 260); $this->Cell(180, 0, '', 'T'); $this->Ln(); $this->SetXY(15, 261); $this->MultiCell(180, 6, utf8_decode($this->_footer_data), 0, 'C'); $this->Ln(); } // end of footer */ }