title: mPDF: Script does not work for codeIgniter
body: <p>I am trying to create pdf files using mPDF and CodeIgneter.
  In the controllor I have following script:<br /></p>
  
  <pre><code>$pdfFilePath = FCPATH."/pdf/report/test.pdf";
  $data['page_title'] = 'Hello world'; // pass data to the view
  
  if (file_exists($pdfFilePath) == FALSE) {
  
  ini_set('memory_limit','32M');
  $html = $this-&gt;load-&gt;view('pdf_output', $data, true); // render the view into HTML
  
  $this-&gt;load-&gt;library('m_pdf');
  $pdf = $this-&gt;pdf-&gt;load();
  $pdf-&gt;SetFooter($_SERVER['HTTP_HOST'].'|{PAGENO}|'.date(DATE_RFC822)); 
  $pdf-&gt;WriteHTML($html); // write the HTML into the PDF
  $pdf-&gt;Output($pdfFilePath, 'F'); 
  }
  </code></pre>
  
  <p>I am getting this eror message and I cannot understand the reason.<br /></p>
  
  <p><strong>Message: Undefined property: Welcome::$pdf</strong></p>