domPDF not outputing data form db to PDF |
[eluser]Otemu[/eluser]
Try this: Render the page without dompdf with the database driven data copy the html now test with dompdf to see if it actually the rendered html causing the issue. On the wiki it says bad formed html can break it. Are you using row array or results array within your model??
[eluser]the_unforgiven[/eluser]
Does no one read previous posts around here, I have done this already! see above! And am using both row array and result array
[eluser]the_unforgiven[/eluser]
Tried it with just html and two lines of php and still nothing on the php side but the html renders: see image: http://d.pr/i/fig9
[eluser]the_unforgiven[/eluser]
Done a test page to var_dump() each varible and here's the output so the vars are working just not with domPDF Code: array(9) { ["order_id"]=> string(2) "14" ["product_id"]=> string(1) "7" ["customers_id"]=> string(1) "1" ["item_ordered"]=> string(11) "New Product" ["qty"]=> string(2) "12" ["order_amount"]=> string(5) "23.99" ["order_date"]=> string(19) "2012-12-18 19:19:34" ["order_status"]=> string(9) "Cancelled" ["other"]=> string(0) "" }
[eluser]the_unforgiven[/eluser]
Figured it out I had $data = array(); in the code if you look and i commented that out it then worked! But one small problem I have now is this: DOMPDF_ENABLE_REMOTE is set to FALSE http://localhost/hb/assets/image/logo.png which should show the logo but doesnt any idea's
[eluser]Nicemotion[/eluser]
Dear all, i have a similar problem: all works perfectly but the dynamic data (lol).. it gives me a sintax T_STRING error in the query echo lines tho the html looks correct on a normal html page... Any idea ? Ty in advance Code: <?php |
Welcome Guest, Not a member yet? Register Sign In |