Jump to content

composer problem wit ros/ezpdf


gmc1103

Recommended Posts

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.