Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I am new to Symfony2 and facing this problem while generating my Admin Panel.

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

I am following this documentation Sonata Admin Bundle.

like image 351
Aim Avatar asked Dec 15 '22 22:12

Aim


1 Answers

You have to specify all blocks in app/config/config.yml like 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]
like image 179
pyjavo Avatar answered Dec 30 '22 10:12

pyjavo