Following the documentation, I added [‘class’] but it didnt work
<?= $this->Form->postbutton(
'SALVAR TODOS OS BOLETOS',
['action' => 'gerarTodosBoletos'],
['confirm' => 'Deseja Imprimir Todos os Boletos?'],
['class' => 'btn btn-outline-primary statement']
)
?>
The confirm
and class
values go in the same array, not separate ones.
1 Like