I am using 3.8 and have included the foundation font icon file into the css, these load ok and are available in the views, however the View and Edit functions work as expected using the following:<?= $this->Html->link(__(''), ['action' => 'view', $category->id],['class' => 'fi-zoom-in size-18', 'escape' => false]); ?>
Unfortunately trying to use something similar in the delete line results in the icon being shown which will immediately delete the row in question, the Confirm question seems to get bypassed?
I have tried every variation of this:
I have tried every variation of this that I can think of to no avail.
I have found using the following code it wil work:
[‘class’ => ‘SvgImage’],
[“alt” => __(‘Delete’)]
[‘action’ => ‘delete’, $category->id],
[‘escape’ => false, ‘confirm’ => __(‘Are you sure you want to delete this category?’, $category->id)]
but it would be nice to use a font icon instead? The SvgImage class merely sets the svg img to 10%