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

后端 未结 11 1275
北荒
北荒 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 14:51

    Try this URL:

    http://[Server-IP]:8000/app_dev.php/en/lucky/number

    There's a bug in the Symfony Book: they forgot the demo app support i18n.

    Just add the "/en" parameter before the routing ones.


    I know this question it's closed but I hope my answer can help others that are still facing this problem.

提交回复
热议问题