我有以下链接格式,我想使用 Cakephp HTML 助手显示
<a href="product_n1_details.html" title="" class="view_image">
<img src="images/slider/1n.jpg" alt="">
<div class="link_overlay icon-search"></div>
</a>
我试过什么?
<?php echo $this->Html->link($this->Html->image('products/'.$pro['Product']['display_photo']."<div class=\'link_overlay icon-search\'></div>", array('alt' => $pro['Product']['name'])), array('controller' => 'products', 'action' => 'view', $pro['Product']['id']), array('escape' => false, 'class' => 'view_image') ); ?>