Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

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



392
Accepted
answer

How about:

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