Hi all,
How can I achieve a link like:
<a href=""><span>Some Link</span></a>
with the CHtml::link helper class. Is there anything obvious that I am missing.
Cheers,
bettor
Hi all,
How can I achieve a link like:
<a href=""><span>Some Link</span></a>
with the CHtml::link helper class. Is there anything obvious that I am missing.
Cheers,
bettor
I figured this:
CHtml::link(CHtml::openTag('span')."Some Link".CHtml::closeTag('span');
Is this the best/only way.
You can also use CHtml.tag():
CHtml::link(CHtml::tag('span', array(), "Some Link"));