Creating image links in CakePHP
<?php echo $html->link($html->image(“back.png”,array(‘border’ => ‘none’)), $refLink, array(‘escape’ => false));?>
As you can see, from a PHP point of view it is as simple as including a function within another function.
So here, the image ‘back.png’ links to the path inside the $refLink variable.
You may also noticed we have added escape = false. If you do not specify this as false,
or you specify it as true then the raw html for the image will be out printed to the view as the link instead of the actual image.
Put array(‘border’ => ‘none’) to hide the border