Php 以zend格式加载实体的imagem

Php 以zend格式加载实体的imagem,php,image,zend-framework2,doctrine,zend-form,Php,Image,Zend Framework2,Doctrine,Zend Form,图标有一个管理器,它已经提供了所有的积垢。 但是我有一个问题,当你打开表单时,Zend表单编辑图标无法加载已经保存的图像 我使用以下元素: $element = new Image(); $element->setName('my-image')         ->setAttribute('src', '/assets/no_image.png')         ->setAttribute('id', 'my-image')         ->setAttrib

图标有一个管理器,它已经提供了所有的积垢。 但是我有一个问题,当你打开表单时,Zend表单编辑图标无法加载已经保存的图像

我使用以下元素:

$element = new Image();
$element->setName('my-image')
        ->setAttribute('src', '/assets/no_image.png')
        ->setAttribute('id', 'my-image')
        ->setAttribute('height', '96')
        ->setAttribute('width', '96')
        ->setAttribute('disabled', 'disabled');
$this->add($element);

有人能帮我吗?

你得到了什么输出?而且,这并不是image-form元素的用途。所以,由于我不知道实际使用的是什么,所以我把这个元素放在这里。图像是始终显示src属性,而不是正在编辑的实体。