Created
May 31, 2017 14:36
-
-
Save AyrtonRicardo/985bb47534db62585eda3dd5cdb4dcb5 to your computer and use it in GitHub Desktop.
how to use simple table.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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