以下代码无效
<?php echo $this->Html->link($this->Html->image('ilmelogo.png'),array('controller'=>'pages','action'=>'feedback')); ?>
但是这段代码正在运作。帮帮我
<?php echo $this->Html->image('ilmelogo.png'); ?>
答案 0 :(得分:0)
你能试试吗,
echo $this->Html->link(
$this->Html->image('ilmelogo.png'),
'/pages/feedback',
array('class' => 'button', 'target' => '_blank')
);
OR
<?php
echo $this->Html->link(
$this->Html->image("ilmelogo.png", array("alt" => "ilme Logo")),
array(
'controller' => 'pages',
'action' => 'feedback'
)
);