Zend_form button scr image

3 messages Options
Embed this post
Permalink
Lionel Morrison

Zend_form button scr image

Reply Threaded More More options
Print post
Permalink
How the heck do you go about setting the src="" attribute of a button
using Zend_form.

I've tried using a decorator which adds the src="image/loginsubmit.gif"
to my input tag but no image shows. I've also tried using CSS to style
the button without success.


Thanks.

Lionel

[lionel.vcf]

begin:vcard
fn:Lionel Morrison
n:Morrison;Lionel
email;internet:[hidden email]
tel;cell:386-336-7709
x-mozilla-html:FALSE
version:2.1
end:vcard


Joó Ádám

Re: Zend_form button scr image

Reply Threaded More More options
Print post
Permalink
> How the heck do you go about setting the src="" attribute of a button using
> Zend_form.

Use the setImage() method of the element.


Ádám
Lionel Morrison

Re: Zend_form button scr image

Reply Threaded More More options
Print post
Permalink
My bad, I was trying to apply an image to a Button for element and not
an Image form element. Thanks for tacitly pointing this out.




Joó Ádám wrote:

>> How the heck do you go about setting the src="" attribute of a button using
>> Zend_form.
>>    
>
> Use the setImage() method of the element.
>
>
> Ádám
>
>