3

I could type the html for an image in my view

<img src="">

but was wondering if zend has an image view helper like it has with urls.

jblue
  • 4,390
  • 4
  • 46
  • 79

3 Answers3

2

No it doesn't. And it probably will never have, because it's trivial to write helpers like this one.

However, for such cases there is Zend_View_Helper_HtmlElement, which should be subclassed to implement needed functionality for HTML tags.

You should write your own, or use one of the img helpers shared by php community.

takeshin
  • 49,108
  • 32
  • 120
  • 164
1

No. Zend Framework doesn't contain this helper. But always you can write this helpers yourself. It is easy. Example of customize image helper: http://blog.amnuts.com/2007/10/03/simple-image-view-helper-for-zend-framework/

Alex Pliutau
  • 21,392
  • 27
  • 113
  • 143
1

No it does not. It has TinySrc view helper though, so you could use it if you really want. There are also custom made image helpers, e.g. Image view helper for Zend Framework

Marcin
  • 215,873
  • 14
  • 235
  • 294