but it was interesting if zend has an image he...">

Zend has an image viewer assistant

I could type html for the image in my view

<img src="">

but it was interesting if zend has an image helper like it does with urls.

+3
source share
3 answers

No no. However, it does have a TinySrc view assistant, so you can use it if you want. There are also custom image helpers, for example. Image Helper for Zend Framework

+1
source

No no. And that probably never will be, because it is trivial to write helpers like this.

However, for such cases, there is Zend_View_Helper_HtmlElementone that needs to be subclassed to implement the necessary functionality for HTML tags.

img-, php.

+2

No. Zend Framework does not contain this helper. But you can always write these helpers yourself. It's simple. Image helper setup example: http://blog.amnuts.com/2007/10/03/simple-image-view-helper-for-zend-framework/

+1
source

Source: https://habr.com/ru/post/1788644/


All Articles