I want to replace text with a fontawesome icon in a link being created with CakePHP's HTMLhelper.
Here is the text version that works just fine:
Html->link('View', ['action' => 'view', $menuitem->id], ['title' => __('View'),'class' => 'btn btn-info btn-xs']) ?>
And here is an example of what I want to accomplish:
Html->link('span with icon goes here', ['action' => 'view', $menuitem->id], ['title' => __('View'),'class' => 'btn btn-info btn-xs']) ?>
Any ideas would be helpful. Thx!