
Что я могу сделать? Пожалуйста, помогите решить эту проблему.
Это мой вид pdf.php:
Контроллер:
public function quote_generate_pdf($id)
{
ini_set('memory_limit', '256M');
// load library
$this->load->library('pdf');
$pdf = $this->pdf->load();
// retrieve data from model
$result=$this->customer_model->customer_quotation_view($id);
$company=$this->customer_model->our_details();
if($result!=false)
{
$data['datas']=$result;
$data['company']=$company;
}
else {
$data['datas']='NA';
}
// boost the memory limit if it's low
$html = $this->load>view('pdf',$data,true);//test
// render the view into HTML
$pdf->WriteHTML($html);
// write the HTML into the PDF
$output = 'itemreport' . date('Y_m_d_H_i_s') . '_.pdf';
$pdf->Output("$output", 'I');
}
Это библиотека Pdf.php
Подробнее здесь: https://stackoverflow.com/questions/511 ... l-browsers
Мобильная версия