Welcome Guest, Not a member yet? Register   Sign In
Several html elements inside an anchor tag, with CI's anchor funtion
#6

[eluser]teampoop[/eluser]
You can also use functions that output text inside the second argument, which will output the same text as Bart mentioned..
Code:
&lt;?php echo anchor('news/article', img('picture.jpg').'<span>some text</span>') ?&gt;

On a side note, the third parameter on the anchor function is an array that would only change the attributes of the <a> tag. Not affect the innerHTML.

again, I could be wrong.


Messages In This Thread
Several html elements inside an anchor tag, with CI's anchor funtion - by El Forum - 12-01-2010, 12:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB