Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.

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


I want below html in cake format.

PHP
<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.

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


I want below html in cake format.

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


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

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900