gpt4 book ai didi

php - “The block type sonata.Admin.block.admin_list does not exist”

转载 作者:塔克拉玛干 更新时间:2023-11-03 05:59:10 25 4
gpt4 key购买 nike

我是 Symfony2 的新手,在生成我的管理面板时遇到了这个问题。

An exception has been occurred during the rendering of a template ("The block type sonata.Admin.block.admin_list does not exist") in SonataAdminBundle:Core:dashboard.html.twig at line 35

我正在关注此文档 Sonata Admin Bundle.

最佳答案

你必须在 app/config/config.yml 中指定所有 block ,就像在 this answer 中一样

sonata_block:
default_contexts: [cms]
blocks:
sonata.user.block.menu:
sonata.user.block.account:
sonata.block.service.text:
sonata.admin.block.admin_list:
contexts: [admin]

关于php - “The block type sonata.Admin.block.admin_list does not exist”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24177144/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com