tanvir tanvir - 1 year ago 73
PHP Question

How to use html edit character (✎) instead of directly use "edit" in cakephp?

i have this link

<?= $this->Html->link(__('Edit'), ['action' => 'edit', $o->id]) ?>.

Instead of Edit ,i want to use edit html character (✎).

please help.

Answer Source

Just add "escape" parameter and set it to false.

You may wanna refer to this: CakePHP 3 creating links

     echo Html->link(__('&#x270E;'), 
         ['action' => 'edit', $o->id],
         ['escape' => false]
 ) ?>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download