title: mPDF error Message: Methods with the same name as their class will not be constructors in a future version of PHP; m_pdf has a deprecated constructor
body: <p>I want to print php to pdf using mPDF library in Codeigniter 3.x. But i got error message. The message is "<strong>Message: Methods with the same name as their class will not be constructors in a future version of PHP; m_pdf has a deprecated constructor</strong>". How to fix it?
  This is my mPDF file</p>
  
  <pre><code>&lt;?php if (!defined('BASEPATH')) exit('No direct script access allowed');
  </code></pre>
  
  <p>class m_pdf {</p>
  
  <pre><code>function m_pdf()
  {
      $CI = &amp; get_instance();
      log_message('Debug', 'mPDF class is loaded.');
  }
  
  function load($param=NULL)
  {
      include_once APPPATH.'/third_party/mpdf60/mpdf.php';
  
      if ($params == NULL)
      {
          $param = '"en-GB-x","A4","","",10,10,10,10,6,3';
      }
  
      return new mPDF($param);
  }
  </code></pre>
  
  <p>}</p>