我有一个使用 FOS用户软件包进行处理的symfony项目。
我想修改app/config/routing.yml
除了 change_password.xml
之外,现在改变所有路线似乎都运行正常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: /psswd
# this prefix value throws GET error.
# without the previx '/change-password` works fine
更改前缀中的任何内容都会为我提供路径
的Get not found错误找不到" GET / psswd"
的路线
我已经清除了缓存,一切似乎都运行正常。
有谁能告诉我为什么会出现这样的问题?
结果显示路径/psswd
无效但路径' / psswd / change-password`正常工作:我