Генерирование PDF с использованием codeigniterPhp

Кемеровские программисты php общаются здесь
Anonymous
Генерирование PDF с использованием codeigniter

Сообщение Anonymous »

I am using dompdf to create a pdf file out of an html file that gets created on-the-fly for the sole purpose of it serving as input for the pdf generator, however I am having trouble doing this, I implemented the code in this thread and everything works fine (I could output a simple pdf) however when I try to give it a more specific url I get this error:


Была обнаружена ошибка, неспособная загрузить запрошенный файл < /p>
< /blockquote>

Вот код, который имеет проблему: < /p>

function printPDF(){

//write_file() usa un helper (file)
$this->load->library('table');
$this->load->plugin('to_pdf');
// page info here, db calls, etc.
$query = $this->db->get('producto');
$data['table'] = $this->table->generate($query);
$path_url = base_url().'print/existencias.html';
write_file($path_url, $data['table']);
$html = $this->load->view($path_url, 'consulta', true);
pdf_create($html, 'consulta');
}


Подробнее здесь: https://stackoverflow.com/questions/503 ... odeigniter

Вернуться в «Php»