我遵循了本教程:
https://github.com/EllisLab/CodeIgniter/wiki/PDF-generation-using-dompdf
但是,我似乎无法正确设置路径。在 dompdf ( config_dompdf.inc.php
) 的配置文件中,我执行了以下操作:
define("DOMPDF_DIR", realpath(dirname('./system/plugins/dompdf/')));
我收到此错误:
Message: require_once(/var/www/myApp/system/plugins/include/functions.inc.php) [function.require-once]: failed to open stream: No such file or directory
Filename: dompdf/dompdf_config.inc.php
Line Number: 233
根据教程,我将 dompdf 目录放在system/plugins
. 但是您可以在上面的第 233 行看到,由于路径不正确,出现了错误。如何修复路径?
(define("DOMPDF_DIR", realpath(dirname('./system/plugins/dompdf/')));)
谢谢!