变量" widget_type" SonataAdminBundle中不存在:Form:filter_admin_fields.html.twig

时间:2014-04-11 05:12:46

标签: symfony blogs sonata-admin

我已经从这个link

创建了奏鸣曲博客包

我的appKarnel

new Acme\DemoBundle\AcmeDemoBundle(),
new Acme\MainBundle\AcmeMainBundle(),
new Acme\SliderBundle\AcmeSliderBundle(),
new Acme\ProjectBundle\AcmeProjectBundle(),
new Knp\Bundle\MenuBundle\KnpMenuBundle(),
new FOS\UserBundle\FOSUserBundle(),
new Sonata\CoreBundle\SonataCoreBundle(),
new Sonata\BlockBundle\SonataBlockBundle(),
new Sonata\jQueryBundle\SonatajQueryBundle(),
new Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle(),
new Sonata\AdminBundle\SonataAdminBundle(),
new Sonata\UserBundle\SonataUserBundle('FOSUserBundle'),
new Sonata\EasyExtendsBundle\SonataEasyExtendsBundle(),
new Application\Sonata\UserBundle\ApplicationSonataUserBundle(),   

但是当我想渲染显示错误的帖子列表时:

  

变量“widget_type”不存在于   SonataAdminBundle:表格:第36行的filter_admin_fields.html.twig

1 个答案:

答案 0 :(得分:0)

有一个拉取请求引用了您的问题https://github.com/sonata-project/SonataAdminBundle/pull/2067