-1

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.

Community
  • 1
  • 1

1 Answers1

0

the escape param is not only well documented, there is also an exact duplicate as example available: http://book.cakephp.org/2.0/en/core-libraries/helpers/html.html#HtmlHelper::link

mark
  • 21,691
  • 3
  • 49
  • 71
  • I did research for over an hour, and could not find any way to solve this, even though I checked that question! I didn't expect to find an answer in the question though :o. Anyway, thanks! – Steven Celen Oct 15 '12 at 15:00