kartik-v / yii2-mpdf

A Yii2 wrapper component for the mPDF library which generates PDF files from UTF-8 encoded HTML.
http://demos.krajee.com/mpdf
Other
161 stars 150 forks source link

constant(): Couldn't find constant _MPDF_TEMP_PATH #59

Closed hagenr closed 7 years ago

hagenr commented 7 years ago

Recent changes in dev-master resulted in an error during definePath()

when the prop is not defined constant() throws

$propDir = constant($prop);
 if (defined($prop) && is_writable($propDir)) {

maybe better
 if (defined($prop) && is_writable(constant($prop))) {
kartik-v commented 7 years ago

Will update on this...