3
I installed the dompdf package on laravel4, using Composer. However, you are giving the following error when trying to create the object:
Use of Undefined Constant DOMPDF_TEMP_DIR - assumed 'DOMPDF_TEMP_DIR'
The php being used is 5.3.10, Aravel 4.0.10
code of creation:
$pdf = new DOMPDF();
dompdf definitions file code:
def("DOMPDF_TEMP_DIR", sys_get_temp_dir());
Even with amendment of that definition or inclusion by include
, the error persists.
Does anyone know the reason for the mistake or has been through this problem?