Error when using mpdf

0

Hello, I installed mpdf via composer on my local site, I used it and it worked perfectly ... I installed it via shell on my hosting, everything normal, but when trying to use it it displays this error:

  

Fatal error: Uncaught Error: Class 'Mpdf \ Mpdf' not found in /home/eproterr/public_html/mypro/pdf/orcamento2.php:6 Stack trace: # 0 {main} thrown in / home / eproterr / public_html /mypro/pdf/orcamento2.php on line 6

The code I'm using to work with the composer is:

require_once __DIR__ . '/vendor/autoload.php';
$mpdf = new \Mpdf\Mpdf();

$mpdf->WriteHTML('<h1>Hello world!</h1>');
$mpdf->Output();
    
asked by anonymous 15.05.2018 / 20:58

0 answers