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

后端 未结 11 1243
北荒
北荒 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:13

    Extending the base class Controller did not work for me. To solve the problem I had to do the following change in web/app.php

    $kernel = new AppKernel('prod', true);
    

    Also I had to add 'en' in the url: http://scotchbox.demo/en/lucky/number

提交回复
热议问题