Skip to content

Instantly share code, notes, and snippets.

@AyrtonRicardo
Created May 31, 2017 14:36
Show Gist options
  • Select an option

  • Save AyrtonRicardo/985bb47534db62585eda3dd5cdb4dcb5 to your computer and use it in GitHub Desktop.

Select an option

Save AyrtonRicardo/985bb47534db62585eda3dd5cdb4dcb5 to your computer and use it in GitHub Desktop.
how to use simple table.php
<?php
$tags = [
'uf' => $uf,
'foo' => $foo,
'outraVar' => $outraVar,
];
$options = [
'type' => $formato,
'tags' => $tags,
'template' => 'nome_aleatorio.html.twig',
'name' => 'pdf', //também pode ser csv.
'footer' => true,
];
$fieldset = [
'foo' => 'Foo',
'bar' => 'bar',
'fooBarz' => 'FooBazr'
];
$data = []; //A mesma estrutura do Fildset xD
$reporter = new WkPdfReporter(); // Ou qualquer reporter.
$reporter->render($data, $fieldset, $options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment