$estatus_bautizado = 'No'; } $this->Cell($width[0], 6, $data[$i]["nombres"], 'LR', 0, 'L', $fill); $this->Cell($width[1], 6, $data[$i]["apPaterno"], 'LR', 0, 'L', $fill); $this->Cell($width[2], 6, $data[$i]["apMaterno"], 'LR', 0, 'L', $fill); $this->Cell($width[3], 6, $fechaNacimiento, 'LR', 0, 'L', $fill); $this->Cell($width[4], 6, $edad, 'LR', 0, 'C', $fill); $this->Cell($width[5], 6, $estatus_bautizado, 'LR', 0, 'C', $fill); $this->Cell($width[6], 6, $data[$i]["numCelular"], 'LR', 0, 'C', $fill); $this->Cell($width[6], 6, $data[$i]["numTelefono"], 'LR', 0, 'C', $fill); $this->Cell($width[7], 6, $data[$i]["Clase"]["nombre"], 'LR', 0, 'C', $fill); $this->Ln(); $fill = !$fill; $i++; } $this->Cell(array_sum($width), 0, '', 'T'); } } $pdf = new MiPdf('L', PDF_UNIT, 'Legal', true, 'UTF-8', false); $pdf->AddPage(); $dataProvider = $_SESSION['datos_filtrados']->getData(); $contador = count($dataProvider); $header = array('Nombres', 'Apellido paterno', 'Apellido materno', 'Fecha Nacimiento', 'Edad', 'Bautizado', 'Celular', 'Teléfono', 'Clase'); $pdf->ColoredTable($header, $dataProvider); $pdf->lastPage(); $pdf->Output('ListaMiembros.pdf', 'D'); exit; ?>