[eluser]zombica[/eluser]
Hey Guys I am generating PDF through plugin and i got the following issue.
In my controller function i have passed my sql data to view file and stored it in $html variable
like this : $html = $this->load->view('pdf', $data, true);
in the next line i have called the function :
pdf_create($html, 'myfile');
but a strange issue is coming over that it loads my view file and displays all sql data but it doesn't comes into the pdf_create() function.
Os something i am missing.
Here is my controller function......
function pdf($cid)
{
$this->load->plugin('to_pdf');
$this->load->helper('typography');
$data['pageTitle'] = 'Case Detail';
$caseInfo = $this->casemodel->get_single_case($cid);
$data['singlecaseView'] = $this->casemodel->get_single_case($cid);
$data['row'] = $this->casemodel->get_single_case($cid);
$html = $this->load->view('pdf', $data, true);
pdf_create($html, 'myfile');
}