You are looking for Zend_Form_Element_Image, for which I just recently
found a need.
I would suggest assigning it a default image in the form, then
reassigning it in the controller with the particular image by using a
getElement call (to get the image element by name) then reassigning
the image with a setImage call. Please note that, if you're doing
this for an "edit" page, it gets somewhat wonky in regards to when to
assign the image to the tag (make sure to do it if it is a post
request, if it isn't a post request, and if it is a valid form or it
is not a valid form).
More information can be found at
http://framework.zend.com/manual/en/zend.form.standardElements.html#zend.form.standardElements.Image
HTH
-jedcred
On Feb 24, 2009, at 8:15 PM, prado wrote:
wondering how can i add an img tag somewhere inside the form using
Zend form,
i have an edit form and want to load an image for eg a logo
associated with
that edited id
--
View this message in context:
http://www.nabble.com/adding-img-tag-in-zend-form-tp22195984p22195984.html
Sent from the Zend Framework mailing list archive at Nabble.com.