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.
/profile/
opens? - Hast