我在 phpbb 中路由时遇到问题。我的routing.yml 文件如下所示:
test_hello_world_controller:
path: /id/{post_id}
defaults: { _controller: test.controller:doSomething }
requirements:
post_id: \d+
但它给出了错误:
找不到“GET /id/43”的路由
当出现这种问题时:
config/services.yml
并检查依赖声明是否正确,routing.yml
文件时都应该删除缓存文件夹。本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句