Symfony2: No route found for “GET /lucky/number”

后端 未结 11 1271
北荒
北荒 2021-02-18 14:17

I start the tutorial (as newbie) and everythings works fine till:

http://symfony.com/doc/current/book/page_creation.html#creating-a-page-route-and-controller at step

11条回答
  •  遇见更好的自我
    2021-02-18 15:10

    Had the same issue, but for a completely different reason than those shown here so far...

    Somehow my demo wasn't defining a default locale. There appear to be a number of configurations that could address this, but I'm not familiar enough with Symfony yet to know the exact cause. My solution until then is to simply define the locale in the URL, for example:

    /app_dev.php/en/lucky/number

提交回复
热议问题