gmc1103 Posted January 19, 2017 Share Posted January 19, 2017 Hi Can someone help me with my code. I have composer instaleed and i added ros/ezpdf dependency This is my server path config home --miga --db --file.php --vendor --ros --ezpdf --src --Cezpdf.php composer.json and my main file is error_reporting(E_ERROR | E_WARNING | E_PARSE); ini_set('display_errors', '1'); require_once "dbconfig.php"; require_once __DIR__ . '/../vendor/autoload.php'; set_include_path('../vendor/ros/ezpdf/src/' . PATH_SEPARATOR . get_include_path()); use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; setlocale(LC_ALL, NULL); setlocale(LC_ALL, 'pt_PT'); my composer.json "autoload": { "classmap": ["db/class.esmaior.php", "src/Cezpdf.php"] }, "require": { "phpmailer/phpmailer": "6.0.x-dev", "ros/ezpdf": "0.12.1" } When i need to make a pdf, i receive this error Fatal error: Class 'Cezpdf' not found in /home/xxxxx/public_html/miga/db/class.esmaior.php on line 2910 This is the line $pdf = new Cezpdf('a4', 'portrait'); So, i don't know why is not loading the ezpdf class Any help? Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.