CakePHP: image inside link, want to make link point to image location

后端 未结 2 797
眼角桃花
眼角桃花 2021-01-15 20:34

I have some images inside links that I want to essentially look like this:

         


        
2条回答
  •  孤城傲影
    2021-01-15 21:11

    This should do the trick:

    echo $html->image('image.png', array('url' => '/' . IMAGES_URL . 'image.png'));
    

提交回复
热议问题