API reference / Quittio \ Core \ Templates
TemplateEngine
interface in quittio/core
Quittio\Core\Templates\TemplateEngine · Source
Turns the view model into HTML for the PDF renderer (Blade, plain PHP, Twig …).
Methods#
| Method | Description |
|---|---|
->render() |
render()#
public function render(
string $template,
InvoiceViewModel $invoice,
array<string, mixed> $data = [],
): string| Parameter | Type | Description |
|---|---|---|
$template | string | |
$invoice | InvoiceViewModel | |
$data | array<string, mixed> = [] | additional variables |
- Returns
string