我已经从这个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