Failed to create url for specified route admin_sonata_classification_category_create

I finished installing the calibration package with this error:

An exception was thrown during the rendering of the template ("The URL for the specified route could not be created" admin_sonata_classification_category_create, because such a route does not exist.) In SonataAdminBundle: Block: block_admin_list.html.twig on line 39.

ps: I used the following steps: https://sonata-project.org/bundles/classification/2-2/doc/reference/installation.html

+6
source share
2 answers

In a new project, I encountered the same problem. I fixed this when I put below code in routing.yml file

_sonata_admin: resource: . type: sonata_admin prefix: /admin 
+15
source

In addition to Alexandre T's answer: my complete routing.yml file looked like this.

 admin_area: resource: "@SonataAdminBundle/Resources/config/routing/sonata_admin.xml" prefix: /admin _sonata_admin: resource: . type: sonata_admin prefix: /admin 
+3
source

All Articles