我想在后端 strong>的视图中渲染/显示图像,但图像 location位于 我尝试在 但是 图像没有显示出来。 有什么帮助吗? p>
div> frontend / web / uploads code>。 p>
DetailView :: widget() code>上执行此操作: p >
...
[
'attribute'=>'image',
'value'=>('/ frontend / web / uploads /'.$ model-> image),
'format'=> [ '图像',[ '宽度'=> '100', '身高'=> '100'],
]的,
代码> PRE>
I want to render/show an image in a view on backend, but the image location is in frontend/web/uploads
.
I tried doing this on the DetailView::widget()
:
...
[
'attribute'=>'image',
'value'=>('/frontend/web/uploads/'.$model->image),
'format' => ['image',['width'=>'100','height'=>'100']],
],
But the image is not showing up. Any help?