First, remove the forward-slash at the first of /third_party
phrase:
include_once APPPATH.'third_party/mpdf/mpdf.php';
CodeIgniter defines APPPATH
constant with a trailing slash. Take a look at index.php
:
define('APPPATH', $application_folder.'/');
Second, make sure that the file/folder names are as the same as you have wrote. It's better to keep them all lowercase. Here is a related topic.
Update:
The class name should be Capitalized. In this case change the pdf
to Pdf
:
class Pdf {
// ...
}
Naming Conventions:
- File names must be capitalized. For example:
Myclass.php
- Class declarations must be capitalized. For example:
class Myclass
- Class names and file names must match.