Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to generate a URL for the named route admin_sonata_classification_category_create

I'm done of installing calassification bundle wiht this error :

An exception has been thrown during the rendering of a template ("Unable to generate a URL for the named route "admin_sonata_classification_category_create" as such route does not exist.") in SonataAdminBundle:Block:block_admin_list.html.twig at line 39.

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

like image 370
Nacer Naciri Avatar asked Oct 30 '15 00:10

Nacer Naciri


1 Answers

On a new project, I encountered the same issue. I fixed it when I put below code in my routing.yml file

_sonata_admin:
  resource: .
  type: sonata_admin
  prefix: /admin
like image 107
Alexandre Tranchant Avatar answered Nov 23 '22 17:11

Alexandre Tranchant