Msgstr "Block type sonata.Admin.block.admin_list does not exist"

I am new to Symfony2 and encounter this problem when creating my admin panel.

An exception occurred while rendering the template ("The block type sonata.Admin.block.admin_list does not exist") in SonataAdminBundle: Core: dashboard.html.twig on line 35

I follow this documentation of the Sonata Admin Bundle.

+4
source share
2 answers

You must specify all the blocks in app / config / config.yml, as in 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]
+8
source

, sonata_block yout config.yml ste

+4

Source: https://habr.com/ru/post/1544272/


All Articles