phpbb3

Phpbb routing doesn't work


I am facing problem when routing in phpbb. my routing.yml file looks like this:

test_hello_world_controller:
path: /id/{post_id}
defaults: { _controller: test.controller:doSomething }
requirements:
        post_id: \d+

but it gives error:

No route found for "GET /id/43"


Solution

  • When there is this kind of problem :

    1. You should have a look on your config/services.yml and check that dependance is well declared,
    2. You should delete your cache folder everytime you update your routing.yml file.