我有脚本
class MYPDF extends TCPDF {
public function Header(){
//die('aaa');
}
public function Footer() {
die('aaa');
$this->SetY(-5);
// Set font
//$this->SetFont('helvetica', 'I', 8);
// Page number
$html='aaa';
$pdf->writeHTMLCell(0, 0, '', '', $html, 0, 0, false, "L", true);
//$this->Cell(0, 10, 'Page '.$this->getAliasNumPage().'/'.$this->getAliasNbPages(), 0, false, 'C', 0, '', 0, false, 'T', 'M');
}
}
$pdf = new MYPDF();
....
但页脚功能无法执行。但是,如果我在标题函数中取消注释('aaa')它是有效的。但是在页脚函数die('aaa')中无法执行。为什么呢?