find erro 36

This commit is contained in:
KhatamNugraha
2024-02-27 15:32:26 +07:00
parent ac26302af8
commit 2b818027c7
2 changed files with 3 additions and 5 deletions

View File

@ -196,15 +196,13 @@
// dd($data); // dd($data);
$dataTest = array("Apple", "Banana", "Orange", "Mango");
//Inisialisasi DOMPDF //Inisialisasi DOMPDF
$options = new Options(); $options = new Options();
$options->set('isHtml5ParserEnabled', true); $options->set('isHtml5ParserEnabled', true);
$options->set('isPhpEnabled', true); $options->set('isPhpEnabled', true);
$options->set(['padding-top' => 39, 'padding-right' => 10, 'padding-bottom' => 20, 'padding-left' => 15]); $options->set(['padding-top' => 39, 'padding-right' => 10, 'padding-bottom' => 20, 'padding-left' => 15]);
$dompdf = new Dompdf($options); $dompdf = new Dompdf($options);
$html = View::make('konfirmasibank::exportPdf', ['data' => $dataTest])->render(); $html = View::make('konfirmasibank::exportPdf')->render();
// Konfigurasi DOMPDF // Konfigurasi DOMPDF
$dompdf->loadHtml($html); $dompdf->loadHtml($html);
@ -651,4 +649,4 @@
} }
} }

View File

@ -84,7 +84,7 @@
</head> </head>
<body> <body>
<div class="content"> <div class="content">
<h1>On Testing</h1> <h1>Test</h1>
</div> </div>
</body> </body>
</html> </html>