CakePHP - using $this->Html->link with $this->Html->image…generating ascii instead of actual HTML

后端 未结 4 604
余生分开走
余生分开走 2021-02-08 20:10

I\'m using cakephp 2.3.0. I searched in the manual for quite awhile, but I haven\'t found the answer. I\'m trying to use $this->Html->link, along with $this->Html->image. I\'m t

4条回答
  •  你的背包
    2021-02-08 20:46

    Try this :

    echo $this->Html->link('', array(
       'controller' => 'Mycont',
       'action'     => 'deletepic',
       $id
    ), array(
       'confirm'    => 'Are you sure you want to delete the image?',
       'class'      => 'deleteImg'
    ));
    

    I have linked image to in class deleteImg.

提交回复
热议问题