SonataAdminBundle +样式不显示正确
问题描述:
任何想法,为什么我的管理区这样表示:SonataAdminBundle +样式不显示正确
我装资产没有问题。 这里是我config.ylm文件:
fos_user:
db_driver: orm
firewall_name: main
user_class: Acme\CoreBundle\Entity\User
group:
group_class: Acme\CoreBundle\Entity\Group
group_manager: sonata.user.orm.group_manager
service:
user_manager: sonata.user.orm.user_manager
sonata_user:
security_acl: true
manager_type: orm
sonata_block:
default_contexts: [cms]
blocks:
sonata.admin.block.admin_list: # Enable the SonataAdminBundle block
contexts: [admin]
sonata.user.block.menu: # used to display the menu in profile pages
sonata.user.block.account: # used to display menu option (login option)
sonata.block.service.text: # used to if you plan to use Sonata user routes
答
他们已搬到依赖从SonataAdminBundle到SonataCoreBundle(看看github上this问题)。
在我的情况下,我在composer.json中完全缺少对sonata-core的明确要求。
同样的问题,在运行composer更新时,看起来像sonata-core不会更新到最新版本。 – 2014-10-03 11:28:11
感谢Sonata的绅士回购,这里是我收到的回复。我希望它可以帮助其他人: dev-master分支中的一些资产已从SonataAdminBundle移到SonataCoreBundle。 我推荐你使用stable分支〜2.3,dev-master是一项正在进行中的工作。 如果你想尝试dev-master资产应该工作。请确保您清除了缓存,并使用app/console资源安装了资产:安装命令并正确配置资产:样式表在config.yml中(与默认的SonataAdmin具有相同的路径),或者不要配置它以允许使用defulat样式表。 – 2014-10-05 23:06:59