0
我在Symfony2的项目,SonataAdminBundle工作中,作为下面给出我的管理类图片预览:如何获得symfony的采集图像
class ApartmentsAdmin extends Admin
{
protected function configureFormFields(FormMapper $formMapper)
{
->add('images', 'collection', array(
'type' => new ImageType(),
'allow_add' => true,
'allow_delete' => true,
'by_reference' => true,
'mapped' => true,
'label' => false,
'required' => false,
'label' => 'Apartment Images'
));
}
}
它工作正常;但我的问题是,在编辑页面上,我想让看到图像集合中包含的每个图像的预览。在“SonataAdminBundle”图像预览的文件,给出了一个个体图像,但它是如何能够使收集的图像预览..
请建议我..
非常感谢..