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 to make an image link in phalcon

Hi my html code is

<a href="login.html"><img src="images/login.png"></a>

how to make the image link point towards login page

<?php echo Phalcon\Tag::linkTo(array('login', 'Login Here!'));?>

here link is working but how to set image as a link to login pls help



411
Accepted
answer

How about:

<?php echo Phalcon\Tag::linkTo(array('login', '<img src="images/login.png">'));?>