I have this code;
<?php echo $this->Form->postLink(__('Delete'),
array('action' => 'delete', $homepage['Homepage']['ContentID']),
array('class'=>'btn icon-plus'),
__('Are you sure you want to delete # %s?', $homepage['Homepage']['ContentID'])); ?>
Where it displays the text ‘Delete’ I would like to put the trashcan icon from the twitter bootstrap css package. However when I do;
<?php echo $this->Form->postLink(__('<i class="icon-trash"></i>')....
It only displays the html rather than grabbing the icon.
Can anyone explain why its doing this and how I can resolve it?
Add
'escape' => falseoption to the third param.