Possible Duplicate:
CakePHP: image inside link, want to make link point to image location
I'm trying to add an image (in $avatar) to a link in cakephp, but it displays as the text
echo $this->Html->link( $avatar, '/notifications/ajax_show', array(
'class' => 'overlay',
'title' => 'text' )
));
It's not possible to use the url parameter of $this->Html->image because I want to set a class on the URL.