how to put another html attributes in link_to method because like for example i have html tags <a href="#">Link to another <i class="glyphicon glyphicon-user"></i> </a>
try escaping the quotes
So you want something like this?
<a href='#' class='myClass' id='myId'> Link to another <i class='glyphicon glyphicon-user'></i> </a>
Just do:
Phalcon\Tag::linkTo( '#', "Link to another<i class='glyphicon glyphicon-user'></i>", ['class' => 'myClass', 'id' => 'myId'] );
https://docs.phalcon.io/es/latest/api/Phalcon_Tag.html
So you want something like this? <a href='#' class='myClass' id='myId'> Link to another <i class='glyphicon glyphicon-user'></i> </a> Just do: Phalcon\Tag::linkTo( '#', "Link to another<i class='glyphicon glyphicon-user'></i>", ['class' => 'myClass', 'id' => 'myId'] ); https://docs.phalcon.io/es/latest/api/Phalcon_Tag.html
thank you for your help :) its nice and concise