07-11-2011, 07:15 AM
[eluser]Perkin5[/eluser]
I've come across an interesting little puzzle. I want to put in an anchor tag using the url helper like this, largely because it automatically gets the link path right:
but of course that only puts in 'images/img.png' as text. What I want to do is to be able to click on the image so I want to use the html helper code like:
How can I embed one within another, or otherwise achieve the result?
I've come across an interesting little puzzle. I want to put in an anchor tag using the url helper like this, largely because it automatically gets the link path right:
Code:
echo anchor('home','images/img.png');
but of course that only puts in 'images/img.png' as text. What I want to do is to be able to click on the image so I want to use the html helper code like:
Code:
echo img('images/img.png');
How can I embed one within another, or otherwise achieve the result?