我可以使用sonata User Bundle将FOS捆绑包集成到Sonata Admin捆绑包。我的登录程序运行正常。现在我想添加一些功能,比如更改密码,它在FOSUserBundle的sonata Admin Bundle中
我可以使用以下命令访问FOS User Bundle的配置文件功能
localhost/myproject/web/app_dev.php/profile
但是更改密码也是一样的
localhost/myproject/web/app_dev.php/change-password无法访问。
我想将它与SonataAdminBundle集成为
localhost/myproject/web/app_dev.php/admin/change-password
你能给我提个建议吗?我该在哪里换车,或者哪里错了?
在我的路线中我有
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: /change-password发布于 2012-09-24 16:02:20
您是否设置了更改密码的路由?
fos_user_change_password:
resource: "@FOSUserBundle/Resources/config/routing/change_password.xml"
prefix: /profilehttps://stackoverflow.com/questions/12559606
复制相似问题