我正在产生一个形象的幻灯塔,我想把th子作为链接。 我有以下法典:
$img = $thumbnail->show($options, $tag_options);
echo $this->Html->image("thumbs/".$img);
echo $this->Html->link($this->Html->image("thumbs/".$img),array( controller => images , action => view , $image[ Image ][ id ]));
第一份对应声明正确显示形象。 第二种情况显示一种类似情况的联系。
<img src="/app/webroot/img/thumbs/fa741043357d4bf1ca39a58edf351d2a.JPG" alt="" />
如今,这一联系是正确的,因为它需要该形象的页面,但它并没有像我所期望的那样展示形象。 当我看一页源时,链接就看着:
<a href="/index.php/images/view/9"><img src="/app/webroot/img/thumbs/fa741043357d4bf1ca39a58edf351d2a.JPG" alt="" /></a>
我注意到, im角上的gle角被越走。 我做了什么错误?