Friday, 15 January 2010

php - "Class 'Cpdf' not found" in "develop" branch -


"itemprop =" text ">

I'm trying to drag this kind of development into the branch, using the composer:

< Pre> "Requires": {"dompdf / dompdf": "Dev-Developed"}

And such a requirement is required:

  requires 'vendor / autoload.php'; Use Dompdf / Dompdf; // If you are defining a composer ('DOMPDF_ENABLE_AUTOLOAD', wrong); Disable DOMPDF's internal autoloader; Define ("DOMPDF_ENABLE_REMOTE", true); // DOMPDF's default configuration requires_once 'vendor / dompdf / dompdf / dompdf_config.inc.php';  

But I'm getting the error:

  Fatal error: Class 'cpdf' / vendor / dompdf / dompdf / src / dompdf / adapter / CPDF Php line 190  

on line 190:

  $ this-> _pdf = new \ cpdf ( 

First of all, I do not use the development branch Please try:

  $ music composer is required "dompdf / dompdf" "0.6 *"  

or from class add: .?

  & lt; php is required 'vendor / autoload.php /vendor/dompdf/dompdf/lib/class.pdf.php "require_once __DIR__;' (false; ( Define "DOMPDF_ENABLE_REMOTE" true). '; Defined' $ PDF = new cpdf ();  

issue class is \ cpdf in a namespace If it is not set then the composer does not include it in the code. \ Vendor \ composer \ autoload_classmap.php therefore requires the requirement of .


No comments:

Post a Comment