【发布时间】:2017-12-08 07:10:56
【问题描述】:
我在尝试访问仪表板时收到以下错误。
在渲染模板期间抛出异常(“在管理池中找不到管理服务“app.admin.post”。”)
我使用本教程“”5.3.2。使用 config.yml"" 我不知道为什么会出现这个错误 https://symfony.com/doc/current/bundles/SonataAdminBundle/reference/dashboard.html
sonata_admin:
templates:
dashboard: SonataAdminBundle:Core:dashboard.html.twig
dashboard:
groups:
app.admin.group.content:
label: app.admin.group.content
label_catalogue: AppBundle
items:
- app.admin.post
app.admin.group.blog:
items: ~
item_adds:
- sonata.admin.page
roles: [ ROLE_ONE, ROLE_TWO ]
app.admin.group.misc: ~
【问题讨论】:
-
是的,当我在 app/config/services.yml 中仅使用“5.3.1。使用管理服务声明”但第二种方式“5.3.2.使用 config.yml" 不起作用,我不知道为什么 [link]symfony.com/doc/current/bundles/SonataAdminBundle/reference/…
标签: php symfony sonata-admin sonata