如何在cakephp 3.2锚标签中包含一个html元素? [英] How to include a html element in cakephp 3.2 anchor tag?

查看:73
本文介绍了如何在cakephp 3.2锚标签中包含一个html元素?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里我想在cakephp 3.2锚链接中包含一个html元素。我试过了,但它没有用.Below是代码。



<前lang =PHP><?= $ this-> Html-> ; link(__(' ' ),[' action' => ' edit',$ user-> id],[' class' => btn btn-primary])?>





我想在蛋糕格式的html下面。



 <   a     class   =  btn btn-primary    href   =  / adminCake3 / adminCake3 / users / edit / 3  >    <   / a  >  





这里取代了icon,html tag()即将到来。提前谢谢。



我尝试过:



这里我想在cakephp 3.2锚链接中包含一个html元素。我试过了,但它没有用.Below是代码。



<前lang =PHP><?= $ this-> Html-> ; link(__(' ' ),[' action' => ' edit',$ user-> id],[' class' => btn btn-primary])?>





我想在蛋糕格式的html下面。



 <   a     class   =  btn btn-primary    href   =  / adminCake3 / adminCake3 / users / edit / 3  >    <   / a  >  





这里取代了icon,html tag()即将到来。提前谢谢。

解决方案

this-> Html-> link(__('' < span class =code-string> '),[' action' => ' edit'


user-> id],[' class' => ; btn btn-primary])?>





我想在蛋糕格式的html下面。



 <   a     class   =  btn btn-primary    href   =  / adminCake3 / adminCake3 / users / edit / 3  >    <   / a  >  





这里取代了icon,html tag()即将到来。提前谢谢。



我尝试过:



这里我想在cakephp 3.2锚链接中包含一个html元素。我试过了,但它没有用.Below是代码。



<?= 


this-> Html-> link(__(' '),[' action' => ' edit'


Here i want to include a html element in cakephp 3.2 anchor link. I have tried it ,but its not working.Below is code.

<?= $this->Html->link(__(''), ['action' => 'edit', $user->id],['class'=>"btn btn-primary"]) ?>



I want below html in cake format.

<a class="btn btn-primary" href="/adminCake3/adminCake3/users/edit/3"></a>



Here inplace of icon ,html tag() is coming. Thank you in advance.

What I have tried:

Here i want to include a html element in cakephp 3.2 anchor link. I have tried it ,but its not working.Below is code.

<?= $this->Html->link(__(''), ['action' => 'edit', $user->id],['class'=>"btn btn-primary"]) ?>



I want below html in cake format.

<a class="btn btn-primary" href="/adminCake3/adminCake3/users/edit/3"></a>



Here inplace of icon ,html tag() is coming. Thank you in advance.

解决方案

this->Html->link(__(''), ['action' => 'edit',


user->id],['class'=>"btn btn-primary"]) ?>



I want below html in cake format.

<a class="btn btn-primary" href="/adminCake3/adminCake3/users/edit/3"></a>



Here inplace of icon ,html tag() is coming. Thank you in advance.

What I have tried:

Here i want to include a html element in cakephp 3.2 anchor link. I have tried it ,but its not working.Below is code.

<?=


this->Html->link(__(''), ['action' => 'edit',


这篇关于如何在cakephp 3.2锚标签中包含一个html元素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆