Crear un Reporte usando FPDF
De KumbiaPHP Framework Wiki
- pdf_controller.php
class PdfController extends ApplicationController{ public function reporte (){ $this->set_response('view'); $this->texto = 'Hola Mundo'; } }
- reporte.phtml
<?php Load::lib('fpdf'); $pdf=new FPDF(); $pdf->AliasNbPages(); $pdf->AddPage(); $pdf->SetFont('Arial','B',20); $pdf->SetXY(0,20); $pdf->Cell(209,18,$texto,0,0,'C'); $pdf->Output(); ?>

