我在电子邮件布局中有这个代码片段:
<div>
<?php echo $this->Html->image('Layouts/default/Logo.png', array(
'alt' => 'Setin SRL',
'url' => $this->Html->url(array('action' => 'index'), true)
)); ?>
</div>
然而这并不好。我可以通过url(array('action' => 'index'), true)
但是我也找不到任何可以为图像设置为 true 的参数。关于如何执行此操作的任何建议或解决方法?
编辑1:
基本上,我需要这个链接:成为Layouts/default/Logo.png
img srchttp://www.something.com/Layouts/default/Logo.png