PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, December 31, 2021

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

 December 31, 2021     cakephp-3.0, html, php     No comments   

Issue

i have this link

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

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

please help.


Solution

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

You may wanna refer to this: CakePHP 3 creating links

<?php 
     echo Html->link(__('&#x270E;'), 
         ['action' => 'edit', $o->id],
         ['escape' => false]
 ) ?>


Answered By - Object Manipulator
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing