0

How can I create html link that has text and image both using cakephp Html helper as below

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

I want final result as

enter image description here

I know that I can do that with css, but I just want to know how is it possible using cakephp

Subodh Ghulaxe
  • 18,333
  • 14
  • 83
  • 102

1 Answers1

7
echo $this->Html->link($this->Html->image('design/unige_logo.png', array('width' => '48', 'height' => '48')) . ' ' . __('Add user'),
                       '#',
                       array('escape' => false));
nIcO
  • 5,001
  • 24
  • 36