Reputation: 1409
hi I have some jpg images in MySQL table. can we show these images with Zend_Form_Element_Image Could someone please help me by providing sample code?
Upvotes: 2
Views: 1667
Reputation: 14365
Sorry i can't provide a working example but here are some useful infos straight from the docs.
Zend_Form_Element_Image
Image elements use the Image Decorator for rendering, in addition to the standard Errors, HtmlTag, and Label decorators.
Zend_Form_Decorator_Image
By default, the decorator uses the element's src property, which can be set with the setImage()
method, as the image source.
====
As i understand, first you need to set up an url (controller) which displaying the image from the db then you can add this url as a parameter to setImage()
Upvotes: 2