We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

How do I put an icon to a LinkTo?

I read the documentation but explicitly not tell me how to configure put the icon for Array



60.0k

Hi jeiel,

i do something like this in volt:

 {{ tag_html("a", ["href":"#", 'aria-haspopup' : 'true', 'aria-expanded' : 'false', 'data-toggle' : 'dropdown', 'class' : 'btn btn-fab btn-fab-mini btn-raised btn-sm btn-material-red-600 dropdown-toggle shadow-z-5']) }}
    <i class="fa fa-camera"></i> Camera
    {{ tag_html_close("a") }}

Rgds

Stefan