I use FOSUserBundle with SonataAdminUserBundle . But I can't open the page at /profile . Gives an error message:

("Unable to generate a URL for the named route" does not exist. "In SonataUserBundle: Profile: action.html.twig at line 27.

Here is my routing.yml :

 #app/config/routing.yml app: resource: "@AppBundle/Controller/" type: annotation main: resource: "@AppBundle/Resources/config/routing.yml" prefix: / # FOSUserBundle's routing fos_user_security: resource: "@FOSUserBundle/Resources/config/routing/security.xml" fos_user_profile: resource: "@FOSUserBundle/Resources/config/routing/profile.xml" prefix: /profile fos_user_register: resource: "@FOSUserBundle/Resources/config/routing/registration.xml" prefix: /register fos_user_resetting: resource: "@FOSUserBundle/Resources/config/routing/resetting.xml" prefix: /resetting fos_user_change_password: resource: "@FOSUserBundle/Resources/config/routing/change_password.xml" prefix: /profile # Admin's routing sonata_user: resource: '@SonataUserBundle/Resources/config/routing/admin_security.xml' prefix: /admin admin: resource: '@SonataAdminBundle/Resources/config/routing/sonata_admin.xml' prefix: /admin _sonata_admin: resource: . type: sonata_admin prefix: /admin 

But /profile/edit works as it should. The question of my similarity has already been asked here and here, but they have not yet decided.

  • A /profile/ opens? - Hast
  • one
    already solved the problem. More precisely helped. It is necessary to write SonatUserBunde routes instead of FOSUserBunde. Here is everything . But thanks anyway ! - kirgiz_jigit
  • Write the answer to your question and mark it as correct or just delete it. In theory, if at least one person voted for the question, then the people have an interest, but it seems to me that people who are not strong in the subject have voted, more to maintain the resource itself. In general, ignoring documentation for good questions can not be attributed, so for me it is a little offensive that such a question can be claimed. - Michael Sivolobov
  • @MichaelSivolobov you are right, I wanted to remove, but suddenly decided to someone it would be useful, it is better to learn from the mistakes of others - kirgiz_jigit
  • Then you should issue a competent answer. But as for me: the question litters the topic. - Michael Sivolobov

0