如何在cakephp 3.2锚标签中包含一个html元素? [英] How to include a html element in cakephp 3.2 anchor 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()即将到来。提前谢谢。
我尝试过:
这里我想在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屋!