Php yii中的html2pdf扩展无法正常工作
我在yii中使用html2pdf。根据指南,我在配置中包含了以下代码:Php yii中的html2pdf扩展无法正常工作,php,html,pdf,yii,html2pdf,Php,Html,Pdf,Yii,Html2pdf,我在yii中使用html2pdf。根据指南,我在配置中包含了以下代码: 'ePdf' => array( 'class' => 'ext.yii-pdf.EYiiPdf', 'params' => array( 'HTML2PDF' => array( 'librarySourcePath' => 'appli
'ePdf' => array(
'class' => 'ext.yii-pdf.EYiiPdf',
'params' => array(
'HTML2PDF' => array(
'librarySourcePath' => 'application.vendor.html2pdf.*',
'classFile' => 'html2pdf.class.php', // For adding to Yii::$classMap
/*'defaultParams' => array( // More info: http://wiki.spipu.net/doku.php?id=html2pdf:en:v4:accueil
'orientation' => 'P', // landscape or portrait orientation
'format' => 'A4', // format A4, A5, ...
'language' => 'en', // language: fr, en, it ...
'unicode' => true, // TRUE means clustering the input text IS unicode (default = true)
'encoding' => 'UTF-8', // charset encoding; Default is UTF-8
'marges' => array(5, 5, 5, 8), // margins by default, in order (left, top, right, bottom)
)*/
)
),
),
我在extension and vendors文件夹中提取了所需的文件,但我得到了如下错误
“include(HTML2PDF_locale.php):无法打开流:没有这样的文件或目录。”
请帮助..此错误的含义。您使用的是普通PHP版本的HTML2PDF还是Yii扩展?如果您使用的是普通PHP版本,请将其放入
protected/models/
文件夹中