class = "post-text" itemprop = "text">
I dompdf
to create a PDF file from the database query in ci
I use. If I limit the rows to almost 500 records then it works fine.
Problems I have more than 5000 records and this gives me time.
My control method is as follows:
public function loadPDFReports () {ini_set ('memory_limit', '1024M'); $ Data ['report'] = $ this- & gt; Red_model- & gt; Load PDF Reports (); $ Size = size ($ data ['report']); $ All = array_chunk ($ data ['report'], 400); Forex Currency ($ $ $ as Chuck) {$ data1 ['reports'] = $ Chuck; $ Data1 ['page_num'] = $ PAGE_NUM; Echo "Hussain: "; Print_r ($ Chuck); $ View = $ it- & gt; Load-> View ('report / pdf', $ 1 data, true); Pdf_create ($ view, 'filename'); } $ View = $ it- & gt; Load-> View ('Report / PDF', $ data, TRUE); Pdf_create ($ view, 'filename'); } // loadPDFReports ()
As you see in the commented code, I tried to split the data into each of the different 400 rows, but this is only the first loop Works for
It has been mentioned that I have loaded in dompdf
assistant autoload.php
.
You can use: Increase your server max_execution_time
Comments
Post a Comment