Generating PDF with DOMPDF with codeigniter on button click after submission of data in to database
问题 I have a question regarding PDF creation with DOMPDF. Basically I have a form that submits data to a DB with jquery that looks like below $('#submit').click(function(){ var submit = $.ajax({ url: 'setController.php', type: 'POST', data: dataString, success: function(msg){ alert("sent"); }, error: function(msg){ alert("fail"); } }); }); The setController calls my setModel which returns a render of my html after it has submited the data in to the DB. Which looks like this. $html = $this ->