Hi guys,
I have a template, with variables and i need to create and add a dynamic table on this file without a declared variable on the template. I´m trying to use this code
$ncms = $total = $desonerado = array();
foreach ($ncmDados as $dados) {
$ncms[] = (String)$dados['ncm'];
$total[] = (String)$dados['total'];
$desonerado[] = (String)$dados['desonerado'];
}
$docx->addTable(array($ncms,$total,$desonerado));
Someone can help me?