I want to print php to pdf using mPDF library in Codeigniter 3.x. But i got error message. The message is "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". How to fix it? This is my mPDF file
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class m_pdf {
function m_pdf()
{
$CI = & 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);
}
}