0

如何使用 cakephp Html 助手创建包含文本和图像的 html 链接,如下所示

<a href="#">
    <img src="images/icons/web-app/48/add-user.png" width="48" height="48"> Add User
</a>

我希望最终结果为

在此处输入图像描述

我知道我可以用 css 做到这一点,但我只想知道如何使用 cakephp

4

1 回答 1

7
echo $this->Html->link($this->Html->image('design/unige_logo.png', array('width' => '48', 'height' => '48')) . ' ' . __('Add user'),
                       '#',
                       array('escape' => false));
于 2012-12-03T13:20:12.797 回答