
Muhammed Anas. I - 2015-11-23 14:41:33
The effort is much appreciated. I have a suggestion.
CI can render a view page to a variable inside controller (createpdf.php) by passing an additional parameter to load view function as follows.
$this->load->view('pdfreport', $data, true);
Then you can shift the pdf conversion logic from view file to controller or model file itself.