Welcome Guest, Not a member yet? Register   Sign In
How do you set an image as an anchor?
#1

[eluser]learning_php[/eluser]
Hi,

I have put in an images and i would like to use this as an anchor link how easy is it to do?

Thanks
#2

[eluser]michalsn[/eluser]
simplest solution:
Code:
anchor('controller/function', '<img src="someimage.png" />');
or you can extend url helper: http://ellislab.com/forums/viewthread/80187/
#3

[eluser]Thorpe Obazee[/eluser]
Code:
echo anchor('here/there', img('images/picture.jpg'));

there's nothing to extend. it works as it is stated in the user_guide




Theme © iAndrew 2016 - Forum software by © MyBB