这是我的控制器:我直接在控制器中写入了查询数据:
function BillSendInvoices(){
$query_datas = $this->db->get('tbl_custinvoices')->result();
foreach ($query_datas as $value) {
$pdfFilePath = date('Y_m_d_h_i_s').'-'.$value->invoicecode.".pdf";
//load mPDF library
$this->load->library('m_pdf');
//generate the PDF from the given html
$this->m_pdf->pdf->WriteHTML('hello '.$value->code);
$this->m_pdf->pdf->Output("./pdf_invoice/".$pdfFilePath, "F");
}
}
请帮助我解决这个问题。