1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
From: William Desportes <williamdes@wdes.fr>
Date: Thu, 19 Aug 2021 17:51:19 +0200
Subject: Update the composer example to use the Debian include_path way
Origin: vendor
Forwarded: not-needed
---
examples/example_066.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/examples/example_066.php b/examples/example_066.php
index c7304c7..662f47a 100644
--- a/examples/example_066.php
+++ b/examples/example_066.php
@@ -18,8 +18,8 @@
* @group pdf
*/
-// Load the autoloader, move one folder back from examples
-require_once __DIR__ . '/../vendor/autoload.php';
+// Load the class using the PHP include_path
+require_once 'tcpdf/autoload.php';
// create new PDF document
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false, true);
|