Unless this has changed recently the way to set the src of an Image Element was 
to use ->setValue().  Using ->setAttrb('src' => 'image.gif'); does not set the 
src attribute for the image.  I posted a issue for this behavior: 
http://framework.zend.com/issues/browse/ZF-2714

Correct me if I am wrong but using the 1.5rc1 release it is still the case, at 
least for me.
Ken


-----Original Message-----
From: Tobias Gies [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 27, 2008 6:14 AM
To: Noé Froidevaux
Cc: Zend Framework General
Subject: Re: [fw-general] Zend_Form_Element_Image don't add the value to src?

You will habe to set the src attribute. Thw valur Attribute is used as  
the value that will be sent via $_POST.


Sent from my iPhone.

Am 27.02.2008 um 11:43 schrieb "Noé Froidevaux" <[EMAIL PROTECTED] 
m>:

> Hi all!
>
> A big thanx for the 1.5RC1!
>
> But, i have a little problem. Why when I set a value to a
> Zend_Form_Element_Image, the value passed don't set the src attrib,
> it's normal (it was worked in 1.5PR)?
>
> $submit = new Zend_Form_Element_Image('continue');
> $submit->setValue('/images/form/button_continue.gif');
>
> -> <input id="continue" type="image" src="" name="continue"/>
>
> Noe

Reply via email to