[eluser]PeteSig[/eluser]
Yep, its the
Code:
$dompdf->stream("invoice--" . $ids . ".pdf");
line which is giving the weird behaviour.
Its as if its taking the 'focus' away from codeigniter code!
If I put the redirect() above this line then I get redirected, but then I don't get option to open the pdf page. If the redirect is after this line (or the die, or anyother php) then I get the option to see the generated pdf, but the rest of the code isn't carried out (even though I can walk over it in the debugger!!).
So, still stumped. How have other displayed pdf's gen'd by dompdf in the past?
I'll have a search of the forum; but any suggestions are most welcome.
Cheers
Pete