Have somebody a example for a form with a Zend_Form_Element_Image ?

I have a lot of problems when I populates my form... The line 994 in
the file Form.php (Zend_Form) sets to null every elements which are
not in the array argument, is it normal?

Noé

----------
From: Noé Froidevaux <[EMAIL PROTECTED]>
Date: Wed, Feb 27, 2008 at 1:19 PM
Subject: Re: [fw-general] Zend_Form_Element_Image don't add the value to src?
To: Zend Framework General <[email protected]>


Hum... Now, it's works with the setValue().

 I have found the problem. I use the $form->populate function and don't
 pass the value for the button.

 With the PR, the framework don't change the value of the image, but
 with the RC1 yes. So, I have to pass the argment for the image in the
 populate function.

 Thanks!
 Noé

 On Wed, Feb 27, 2008 at 12:14 PM, Tobias Gies
<[EMAIL PROTECTED]> wrote:


> 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