Re: Adding image (png) icon in form->button element - please help.

2011-12-07 Thread Blues Clues
Yes, you are correct. I guess, I was being ignorant. Thanks. It works now. On Dec 7, 3:49 pm, euromark wrote: > why are you purposely setting 'escape'=>true? > if you want to use html inside an element you are shooting yourself in > the foot this way. > it should rather by false then. > > On 7 De

Re: Adding image (png) icon in form->button element - please help.

2011-12-07 Thread euromark
why are you purposely setting 'escape'=>true? if you want to use html inside an element you are shooting yourself in the foot this way. it should rather by false then. On 7 Dez., 21:10, Blues Clues wrote: > Hi: > > I have a, hopefully, silly problem. Can you help ? > > I have for Form->Button in

Adding image (png) icon in form->button element - please help.

2011-12-07 Thread Blues Clues
Hi: I have a, hopefully, silly problem. Can you help ? I have for Form->Button in my view that looks like this... button('Edit', array('class'=>"btnEdit", 'escape'=>true, 'type'=>"button")); ?> Now, I would like to add a small img (png) before 'Edit' to make it pretty. button($this->Html->imag